Geovalidation API

The GeoValidation API allows developers to verify the geographical accuracy of a given address by comparing it to a provided latitude and longitude. It returns:

  • Whether the coordinates match the address
  • The distance (in meters) between the actual address location and the given coordinates

This is especially useful for validating user input, checking delivery addresses, or confirming geo-tagged data accuracy.


🔑 Authentication

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

🌐 Endpoint

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

📥 Request Parameters

ParameterTypeRequiredDescription
addressStringYesFull address to be verified
LatFloatYesLatitude of the location
LongFloatYes Longitude of the location

📤 Sample Request


  curl --location 'https://apihub.latlong.ai/v4/geovalidation.json?address=3%2F80%2C%20IH%20Colony%2C%20MG%20Road%2C%20Goregaon%20West%2C%20Mumbai%20400104&latitude=19.163051&longitude=72.839485'  

📦 Sample Response

{ 

  "code": 1001, 

  "status": "success", 

  "data": { 

    "address": "3/80, IH Colony, MG Road, Goregaon West, Mumbai 400104", 

    "latitude": "19.163051", 

    "longitude": "72.839485", 

    "geocode_latitude": "19.16505783427186", 

    "geocode_longitude": "72.84083695083979", 

    "distance": { 

      "aerial": "0.26 km", 

      "driving": "0.42 km" 

    }, 

    "result": { 

      "Colony": "NO", 

      "Locality": "YES", 

      "City": "YES", 

      "District": "YES", 

      "State": "YES", 

      "Pincode": "YES" 

    } 

  } 

}  

💡 Response Details

FieldDescription
matchTrue if the address matches the coordinates within acceptable distance
distance_in_meters The actual distance between the given point and resolved address location
verified_address_coordinates The lat/long resolved from the given address
input_coordinatesThe original coordinates sent by the user
messageA human-readable summary of the result

🧠 Features

  • 📦

    Verifying delivery address coordinates from customers

  • 🛰️

    Confirming if a tagged location aligns with user-entered address

  • 🛡️

    Preventing location fraud in apps requiring geo-authentication

  • 📍

    Ensuring precision in field survey and logistics platforms

⚠️ Errors

Status CodeMessageDescription
400Missing required parametersWhen query is not provided
401UnauthorizedAPI key missing or invalid
500Internal Server ErrorServer-side error