Reverse Geocoding API

The Reverse Geocoding API converts geographic coordinates (latitude and longitude) into a human-readable address. It’s ideal for map-based tools, location tagging, geo-fencing apps, and user check-in systems.

🔑 Authentication

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

🌐 Endpoint

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

📥 Request Parameters

ParameterTypeRequiredDescription
lat floatYesLatitude of the location
lonfloatYesLongitude of the location

📤 Sample Request


  curl --location 'https://apihub.latlong.ai/v4/reverse_geocode.json?latitude=12.9306361&longitude=77.5783206'  

📦 Sample Response

{ 

  "code": 1001, 

  "status": "success", 

  "data": { 

    "address": "27th Cross Road, 2nd Main Road, 7th block, Jayanagar, Bangalore South, Bengaluru, Karnataka", 

    "pincode": "560070", 

    "landmark": "< 0.5km from Lucid Medical Diagnostics, < 0.5km from Lucid Medical Diagnostics, < 0.5km from Barbeque Nation" 

  } 

}  

🧠 Features

  • Converts coordinates into address components (street, city, state, pincode, etc.)

  • 📍

    Returns a confidence score for accuracy

  • 🗺

    ️Useful for apps that work with maps, location services, and spatial data tagging

  • 🧩

    Flexible integration with your frontend maps

⚠️ Errors

Status CodeMessageDescription
400Missing required parametersWhen query is not provided
401UnauthorizedAPI key missing or invalid
404No address found No address found for given coordinates
500Internal Server ErrorSomething went wrong on our side

Best Practices

  • Use well-formatted decimal coordinates (e.g., 12.9716, 77.5946)
  • Combine with GPS input or map marker clicks for UX-friendly workflows
  • Use confidence scores to filter uncertain or partial address results