The Landmark API allows users to click on a specific point on the map and instantly retrieve the top 4 most relevant landmarks located near that point. This feature is especially useful for enhancing map interactivity and providing contextual awareness of surroundings.
Authorization: X-Authorization-Token /v4/landmarkshttps://apihub.latlong.ai/v4/landmarks| Parameter | Type | Required | Description |
|---|---|---|---|
| lat | Float | Yes | Latitude of the point clicked on the map |
| lon | Float | Yes | Longitude of the point clicked on the map |
curl --location 'https://apihub.latlong.ai/v4/landmarks.json?latitude=19.163051&longitude=72.839485' {
"code": 1001,
"status": "success",
"data": [
{
"name": "C.C.I. Colony",
"geo": "59039",
"latitude": "19.163160",
"longitude": "72.840270"
},
{
"name": "Matushree Gomati Hospital",
"geo": "1595521",
"latitude": "19.161242",
"longitude": "72.840074"
},
{
"name": "Dr Baliga Nursing Home & Goregaon Polyclinic",
"geo": "1586294",
"latitude": "19.162992",
"longitude": "72.839302"
},
{
"name": "Jain Hospital and Medical Center",
"geo": "1598201",
"latitude": "19.162992",
"longitude": "72.839302"
}
]
} Fetch top 4 nearby landmarks instantly on map click
Highly relevant landmarks based on real-world data and popularity
️ Precise distance calculations from the clicked point
Great for tourist maps, navigation aids, and point-of-interest context
| Status Code | Message | Description |
|---|---|---|
| 400 | Missing lat/lon | Latitude or longitude not provided |
| 401 | Unauthorized | API key missing or invalid |
| 429 | Rate limit exceeded | Too many requests in a short time |
| 500 | Internal Server Error | Something went wrong on our side |
lat / lonto this API