To get a list of locations use the following API operation.
As default the location list is empty unless some locations has been shared with the webservice user.
Request:
GET /location/list
Response:
{
"records": [
...
{
"id": 1416912470386398,
"name": "Houston",
"polygon": {
"coordinates": [
[
[
-95.229348628125,
29.814184284817
],
[
-95.017861811719,
29.860642977599
],
[
-94.74045702656301,
29.527810027253
],
[
-94.943704096875,
29.373547603421
],
[
-95.28428026875,
29.714046081752
],
[
-95.229348628125,
29.814184284817
]
]
],
"type": "Polygon"
},
"position": {
"coordinates": [
-95.023354975781,
29.706889524606
],
"type": "Point"
}
},
...
]
}
Note that the response has been modified to show only one object.