The POI Nearby API returns points of interest of a specific category using either: a point + radius (proximity search), or a bounding box (viewport search). Results include the name, distance, coordinates, and address of each matching venue.
Click anywhere on the map — or type coordinates below — then select a category and
radius to search. Categories use raw OSM
key:value tags.
Results will be empty for oceans or locations outside the
coverage area.
This API is ideal for powering “restaurants near me” searches using
amenity:restaurant, or finding
supermarkets in a city (e.g. Mérida, Mexico at
20.960, -89.614) using
shop:supermarket.
In addition to point + radius searches, you can query POIs within a rectangular area using a bounding box. This is useful for map viewport queries or retrieving all POIs within a visible region.
curl -H "X-API-Key: $API_KEY" \
"https://api.oncoord.com/v1/poi_nearby?category=shop:supermarket&boundary.rect.min_lat=9.927&boundary.rect.max_lat=9.947&boundary.rect.min_lon=-84.123&boundary.rect.max_lon=-84.103"
Bounding box parameters:
boundary.rect.min_lat — southern latitudeboundary.rect.max_lat — northern latitudeboundary.rect.min_lon — western longitudeboundary.rect.max_lon — eastern longitudeThe bounding box must not exceed the maximum allowed size (100 km per side).
{
"total": 2,
"results": [
{
"name": "Domino's",
"category": ["food", "retail", "amenity:fast_food", "cuisine:pizza"],
"distance_m": 724,
"center_point": { "lon": -93.103771, "lat": 16.75194 },
"address": { "zip": "29000" }
},
...
]
}
food and
retail).Search results · see full JSON below for complete venue details