Docs › Products
Nearby
Places of one kind around a point (mosques, gas stations, pharmacies, ATMs and more), closest first, with the distance in miles or kilometres.
What to send
GET https://map.wazli.com/api/maps/v1/nearby with a key that has Nearby.
| Parameter | What it is |
|---|---|
lat, lng | The point to search around. |
type | One of: fuel, hospital, atm, pharmacy, cafe, mosque, restaurant, fast_food, supermarket, hotel, parking, bank. |
radius | How far to look, from 0.1 up to 15 miles (25 km); 1 if left out. |
unit | "mi" (default) or "km": for radius and for the distances that come back. |
limit | How many places, 1 to 20 (10 if left out). |
lang | "en" (default) or "ar": the language of names and addresses in the answer. |
What comes back
{ results }, closest first: each is a Place (see the Autocomplete page) with distance, in the unit you asked for, to 2 decimals.
Answer (shortened)
{
"results": [
{
"id": "osm:W778921092",
"kind": "poi",
"label": "Masjid Al-Haqq, North Terry Avenue, Orlando, Florida, 32801, United States",
"name": "Masjid Al-Haqq",
"lat": 28.5422905,
"lng": -81.3868302,
"distance": 0.56,
...
},
{ "name": "Masjid Al-Quddus", "distance": 0.62, ... },
...
]
}Example
curl
curl "https://map.wazli.com/api/maps/v1/nearby?lat=28.538&lng=-81.379&type=mosque&radius=5&unit=mi&limit=3" \
-H "X-Wazli-Key: YOUR_SERVER_KEY"