EVGLocation Class Reference
Inherits from | Declared in |
---|---|
NSObject | EVGItems.h |
Location to associate with an Item, for example for filtering reasons if a product only available in an area.
Latitudinal coordinate of the location, should be from -90 to 90.
Longitudinal coordinate of the location, should be from -180 to 180.
Name of the city.
Name of the state or province.
Postal code of the location.
Creates a location with geographic coordinates.
Parameters
Parameter | Description |
---|---|
latitude | Latitudinal coordinate, should be from -90 to 90 |
longitude | Longitudinal coordinate, should be from -180 to 180 |
Creates a location with city and state.
Parameters
Parameter | Description |
---|---|
city | City name |
stateProvinceCode | State or Province Code (e.g. MA ) |
Creates a location with postal code.
Parameters
Parameter | Description |
---|---|
postalCode | Postal code |
Creates a location from the provided JSON.
Parameters
Parameter | Description |
---|---|
json | A location in JSON form |
Return Value
A location which can be further modified, or nil if JSON is invalid