Points of Interest
Points of interest near coordinates.
GET
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
lat | number | Required | Latitude coordinate |
lng | number | Required | Longitude coordinate |
radius | number | Optional | Search radius in km (default: 1, max: 50) |
category | string | Optional | Filter by category (see list below) |
limit | integer | Optional | Number of results (default: 20, max: 100) |
Categories
restauranthotelhospitalschoolbankshoptransporttourismsportparkingfuelRequest Example
curl "https://api.localityapi.com/v1/pois?lat=25.2048&lng=55.2708&radius=1&category=restaurant" \
-H "X-API-Key: lapi_your_key"Response
json
{
"results": [
{
"name": "The Daily",
"category": "restaurant",
"lat": 25.2053,
"lng": 55.2679,
"distance_km": 0.327,
"cuisine": "international"
}
],
"count": 20,
"query_ms": 39
}Response Fields
resultsarrayArray of POIsresults[].namestringPOI nameresults[].categorystringCategoryresults[].latnumberLatituderesults[].lngnumberLongituderesults[].distance_kmnumberDistance from search pointresults[].cuisinestringCuisine type (restaurants)countintegerNumber of resultsquery_msintegerQuery execution time in milliseconds