Nearby - Places (Public BETA)
The Nearby API returns nearby places around a specified location.
Results can include points of interest such as cafes, hospitals, and airports, as well as place-level features such as cities, depending on the requested tag.
Note: The Nearby API endpoint is presently in BETA. The request or response format may change without notice. While we don't expect to remove any elements, there will be additions.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/nearby?lat=40.748442&lon=-73.985658"[ { "place_id": "423028398818", "osm_type": "way", "osm_id": "34633854", "lat": "40.7484284", "lon": "-73.98565462", "class": "tourism", "type": "attraction", "tag_type": "attraction", "name": "Empire State Building", "display_name": "Empire State Building, 350, 5th Avenue, Korea Town, Midtown South, New York, New York, 10001, United States of America", "address": { "name": "Empire State Building", "house_number": "350", "road": "5th Avenue", "neighbourhood": "Korea Town", "suburb": "Midtown South", "city": "New York", "state": "New York", "postcode": "10001", "country": "United States of America", "country_code": "us" }, "boundingbox": [ "40.7479226", "40.7489422", "-73.9864855", "-73.9848259" ], "distance": 1 }, { "place_id": "423629875658", "osm_type": "node", "osm_id": "5190610589", "lat": "40.7483271", "lon": "-73.9856549", "class": "tourism", "type": "attraction", "tag_type": "attraction", "name": "NY Skyride", "display_name": "NY Skyride, 350, 5th Avenue, Korea Town, Midtown South, New York, New York, 10001, United States of America", "address": { "name": "NY Skyride", "house_number": "350", "road": "5th Avenue", "neighbourhood": "Korea Town", "suburb": "Midtown South", "city": "New York", "state": "New York", "postcode": "10001", "country": "United States of America", "country_code": "us" }, "boundingbox": [ "40.7483271", "40.7483271", "-73.9856549", "-73.9856549" ], "distance": 9 }]