Geocoding API
Convert a human-readable address into latitude and longitude coordinates. Ideal for placing locations on a map, route planning, and spatial data analysis.
Try in Playground →Endpoint
GET
/v4/geocode.jsonAuthentication
Include your token in the request header:
X-Authorization-Token: your_token
Parameters
| Name | Type | Description |
|---|---|---|
| address | string | The address to geocode |
| accuracy_level | boolean | Return confidence score for the result |
Code Examples
curl "https://apihub.latlong.ai/v4/geocode.json?address=VALUE" \ -H "X-Authorization-Token: YOUR_TOKEN"
Example Response
JSON
{
"status": "success",
"code": 1001,
"data": {
"latitude": 12.9716,
"longitude": 77.6199,
"formatted_address": "MG Road, Bangalore, Karnataka, India",
"accuracy_level": "high"
}
}Notes
- Supports addresses in local languages and formats across 50+ countries.
- For best results, include city and state in the address string.
- Use
accuracy_level=trueto get a confidence score.

