Contents |
URL
https://api.geoloqi.com/1/place/list
Description
Retrieves all places for the given layer.
Supported Request Methods
GET
Scope
layer
Parameters
- layer_id OptionalThe id of the layer to retrieve places from.
- include_unnamed OptionalBy default, place/list will not return un-named places. Include this query string parameter to also return the un-named places. Also see API/place/list_unnamed
- sort Optional: name, recent, visitsBy default, places are sorted by number of visits in descending order.
- Paging
Response
{ "places": [ { "place_id":"13renN", "name":"Portland", "latitude":45.52302670, "longitude":-122.6176786, "radius":7350, "intersection":"", "locality":{ "name":"Portland", "id":"E_4g" }, "region":{ "name":"Oregon", "id":"Rnhe9" }, "country":{ "name":"United States of America", "id":"u42" }, "display_name":"Portland, Oregon", "extra":{ "favorite":"1" } }, { "place_id":"17r8Jk", "name":"", "latitude":45.4874557, "longitude":-122.8094673, "radius":2253 "intersection": "", "locality":{ "name":"Beaverton", "id":"Eh4g" }, "region":{ "name":"Oregon", "id":"Rnhe9" }, "country":{ "name":"United States of America", "id":"u42" }, "display_name":"Beaverton, Oregon" } ] }