GET/v1/poi/nearby
Points of interest within a radius of a point, sorted by distance.
[ OPTIONS ]
| Name | Type | Required | Description |
|---|---|---|---|
lat | number | Yes | Latitude of the center point. |
lng | number | Yes | Longitude of the center point. |
category | string | No | Same category filter as /v1/poi. Omit for all. |
radius | number | No | Miles from the center (default 2, max 25). |
page | integer | No | Page number (default 1). |
per_page | integer | No | Venues per page, nearest first (default 50, max 200). |
[ EXAMPLE REQUEST ]
curl "https://atlasblock.dev/api/v1/poi/nearby?lat=35.21&lng=-80.85&radius=2&category=health"[ 200 OK ]
{
"status": "success",
"data": {
"center": {
"latitude": 35.21,
"longitude": -80.85,
"radius_miles": 2
},
"categories": [
"health"
],
"pois": [
{
"id": "node/7654321",
"osm_type": "node",
"name": "Dilworth Pharmacy",
"category": "health",
"subtype": "pharmacy",
"latitude": 35.205,
"longitude": -80.851,
"distance_miles": 0.4,
"address": "1600 East Blvd",
"phone": null,
"website": null,
"opening_hours": "Mo-Fr 09:00-19:00",
"brand": null
}
],
"pagination": {
"page": 1,
"per_page": 50,
"total": 1,
"total_pages": 1
}
}
}[ TRY IT ]Open playground →
GET/v1/poi/nearby?lat=35.21&lng=-80.85&category=health&radius=2
[ QUERY ]
[ CURL ]
curl "https://atlasblock.dev/api/v1/poi/nearby?lat=35.21&lng=-80.85&category=health&radius=2" \ -H "Authorization: Bearer $ATLASBLOCK_API_KEY"
[ EVERY REQUEST ]
Send an Authorization: Bearer key against the base URL https://atlasblock.dev/api. Every call counts toward your plan quota. See the overview for authentication, rate limits, and status codes.
[ MORE IN POINTS OF INTEREST ]
