GET
/v4/geocode.jsonGeocoding 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 →Authentication
Include your API token in the request header:
X-Authorization-Token: your_token_here
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| address | string | Required | The address to geocode |
| accuracy_level | boolean | Optional | Return confidence score for the result |
Code Examples
curl "https://apihub.latlong.ai/v4/geocode.json?address=VALUE" \ -H "X-Authorization-Token: YOUR_TOKEN"
Response
JSON200 OK
{
"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.
Ready to try it?
Test this API interactively in the playground.

