Atlasblock API

GET/v1/poi/nearby

Points of interest within a radius of a point, sorted by distance.

[ OPTIONS ]
NameTypeRequiredDescription
latnumberYesLatitude of the center point.
lngnumberYesLongitude of the center point.
categorystringNoSame category filter as /v1/poi. Omit for all.
radiusnumberNoMiles from the center (default 2, max 25).
pageintegerNoPage number (default 1).
per_pageintegerNoVenues 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
    }
  }
}
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.