Contents |
URL
https://api.geoloqi.com/1/place/info/:id
Description
Return information about a place.
The intersection, locality, region and country fields are dynamically populated after the place is created. Display name is set to the best name of the place that is available. If the place has been given a name, that is used, otherwise intersection, locality, region and country in that order.
Supported Request Methods
GET
Parameters
None, if place ID is given in the URL. (place/info/:id)
You can also retrieve place info by unique key and layer ID. In this case, the following parameters are required:
- key RequiredThe unique key for the place you are looking up
- layer_id RequiredThe layer ID to use when searching for the place by key
Response
{ "place_id":"13renN", "name":"", "latitude":"45.52302670", "longitude":"-122.6176786", "radius":300, "intersection": "NW 12th & Davis St", "locality":{ "name":"Portland", "id":"E_4g" }, "region":{ "name":"Oregon", "id":"Rnhe9" }, "country":{ "name":"United States of America", "id":"u42" }, "display_name": "NW 12th & Davis St", "description": "Portland is a city in the state of Oregon", "extra":{ "favorite":"1" } }