The Geocoding API converts a human-readable address into latitude and longitude coordinates. Itβs ideal for applications that require placing locations on a map, route planning, location-based services, or spatial data analysis.
Authorization: X-Authorization-Token
(Get your token HERE)/v4/geocode
https://apihub.latlong.ai/v4/geocode
Parameter | Type | Required | Description |
---|---|---|---|
address | String | Yes | Full address or partial address |
curl --location 'https://apihub.latlong.ai/v4/geocode.json?address=3%2F80%2C%2520IH%2520Colony%2C%2520MG%2520Road%2C%2520Goregaon%2520West%2C%2520Mumbai%2520400104&accuracy_level=true'
{
"code": 1001,
"status": "success",
"data": {
"address": "3/80, IH Colony, MG Road, Goregaon West, Mumbai 400104",
"latitude": "19.163575801102443",
"longitude": "72.84282465784247",
"accuracy": "locality"
}
}
Converts addresses to precise geographic coordinates
Supports partial and complete addresses
οΈ Fast, reliable, and accurate geocoding engine
Confidence score helps you validate ambiguous inputs
Status Code | Message | Description |
---|---|---|
400 | Missing required parameters | When query is not provided |
401 | Unauthorized | API key missing or invalid |
404 | Not found | No results found for the given address |
500 | Internal Server Error | Something went wrong on our side |