Landmark API

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.

🔑 Authentication

  • All requests must include your API key.
  • Header Example:
  • Authorization: X-Authorization-Token (Get your token HERE)

🌐 Endpoint

  • GET /v4/landmarks
  • Base URL: https://apihub.latlong.ai/v4/landmarks

📥 Request Parameters

ParameterTypeRequiredDescription
latFloatYesLatitude of the point clicked on the map
lon FloatYesLongitude of the point clicked on the map

📤 Sample Request


    curl --location 'https://apihub.latlong.ai/v4/landmarks.json?latitude=19.163051&longitude=72.839485' 

📦 Sample Response

{ 

  "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" 

    } 

  ] 

}  

🧠 Features

  • 🔎

    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

⚠️ Errors

Status CodeMessageDescription
400Missing lat/lonLatitude or longitude not provided
401UnauthorizedAPI key missing or invalid
429Rate limit exceededToo many requests in a short time
500Internal Server ErrorSomething went wrong on our side

Best Practices

  • Use map click handlers to feed lat / lonto this API
  • Visualize returned landmarks with pins or highlights on the map
  • Include landmark names and types in tooltips for better UX
  • Allow click-to-view-details from the result set for rich interaction