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:
This is especially useful for validating user input, checking delivery addresses, or confirming geo-tagged data accuracy.
Authorization: X-Authorization-Token
(Get your token HERE)/v4/geovalidation
https://apihub.latlong.ai/v4/geovalidation
Parameter | Type | Required | Description |
---|---|---|---|
address | String | Yes | Full address to be verified |
Lat | Float | Yes | Latitude of the location |
Long | Float | Yes | Longitude of the location |
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'
{
"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"
}
}
}
Field | Description |
---|---|
match | True 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_coordinates | The original coordinates sent by the user |
message | A human-readable summary of the result |
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
Status Code | Message | Description |
---|---|---|
400 | Missing required parameters | When query is not provided |
401 | Unauthorized | API key missing or invalid |
500 | Internal Server Error | Server-side error |