Location
Location to associate with an Item, for example for filtering reasons if a product only available in an area.
Field | Description | Modifier and Type |
---|---|---|
city | Name of the city. | java.lang.String |
latitude | Latitudinal coordinate of the location, should be from -90 to 90 . | java.lang.Double |
longitude | Longitudinal coordinate of the location, should be from -180 to 180 . | java.lang.Double |
postalCode | Postal code of the location. | java.lang.String |
stateProvinceCode | Name of the state or province. | java.lang.String |
latitude
Latitudinal coordinate of the location, should be from -90 to 90.
longitude
Longitudinal coordinate of the location, should be from -180 to 180.
city
Name of the city.
stateProvinceCode
Name of the state or province.
postalCode
Postal code of the location.
Location with Georgraphic Coordinates
Creates a location with geographic coordinates.
Parameters:
Parameter | Description | Required? |
---|---|---|
latitude | Latitudinal coordinate, should be from -90 to 90 | No |
longitude | Longitudinal coordinate, should be from -180 to 180 | No |
Location with City and State
Creates a location with city and state.
Parameters:
Parameter | Description | Required? |
---|---|---|
city | City name | No |
stateProvinceCode | State or Province Code (e.g. MA ) | No |
Location with Postal Code
Creates a location with postal code.
Parameters:
Parameter | Description | Required? |
---|---|---|
postalCode | Postal code | No |
Method | Modifier and Type |
---|---|
fromJSONObject(org.json.JSONObject json) | static Location |
toJSONObject() | org.json.JSONObject |
Methods inherited from class java.lang.Object
:
equals
getClass
hashCode
notify
notifyAll
toString
wait
wait
wait