/
LOCATION (JSON)
LOCATION (JSON)
Some API functions that return lists of TASKS (e.g. user_get_task_list()) accept a filter expression to limit the amount of results returned.
The string is expressed in JSON format, and the fields supported are:
- type: Specifies how location is defined. It accepts the following values
- 'GPS': The contents of the JSON will hold GPS coordinates (latitude, longitude, and other typical fields returned by a GPS device)
- 'address': The contents of the JSON will hold a postal address
- If the location type is "GPS":
- latitude: expressed in degrees [-90, 90]
- longitude: expressed in degrees [-180, 180]
- altitude: expressed in meters
- accuracy: expressed in meters
- altitude_accuracy: expressed in meters
- heading: expressed in degrees [0, 360]
- speed: expressed in meters/s
- date: local date when the GPS measure was taken in format 'YYYY-MM-DD'
- time: local time when the GPS measure was taken in format 'hh:mm:ss'
- utc_offset: offset of the local time with respect to UTC time
- If the location type is "address"
- address: a string with a full postal address
Example
GPS Coordinates
{ "type": "GPS", "latitude": 41.27574757947718, "longitude": 1.4898162889335549, "altitude": 55, "accuracy": 65, "altitude_accuracy": 65, "heading": 32.332, "speed": 2.543, "date": "2019-06-29", "time": "13:14:47", "utc_offset": 2 }
Postal address
{ "type": "address", "address": "Roger de LLuria 50, Barcelona, Spain" }
, multiple selections available,
Related content
ITEM TYPE: "GEOLOCATION"
ITEM TYPE: "GEOLOCATION"
More like this
ACTION CONTEXT (JSON)
ACTION CONTEXT (JSON)
More like this
#ELEMENT:GEOLOCATION
#ELEMENT:GEOLOCATION
More like this
TASK FILTER (JSON)
TASK FILTER (JSON)
More like this
GEOLOCATION.URI_GPS_SCHEME CODES
GEOLOCATION.URI_GPS_SCHEME CODES
More like this
"ADDRESS" OBJECT CODE
"ADDRESS" OBJECT CODE
More like this