The Autocomplete API provides intelligent suggestions for places, addresses, or landmarks as users type. It’s optimized for speed, accuracy, and localization, helping you create a seamless search experience in maps, navigation apps, delivery platforms, and more.
Authorization: X-Authorization-Token
(Get your token HERE)/v4/autocomplete
https://apihub.latlong.ai/v4/autocomplete
Parameter | Type | Required | Description |
---|---|---|---|
Query | String | Yes | Partial input from the user (e.g. “Banga”) |
Lat | Float | No | Latitude for location biasing |
Long | Float | No | Longitude for location biasing |
Limit | Int | No | Max number of suggestions to return (default: 5, max: 20) |
Language | String | No | Language code (e.g., en, hi, fr) for localized results |
curl --location 'https://apihub.latlong.ai/v4/autocomplete.json?query=delhi'
{
"code": 1001,
"status": "success",
"data": [
{
"name": "Delhi - Kalka Line, North Delhi, Delhi",
"geoid": 187911
},
{
"name": "Delhi Ring Railway, West Delhi, Delhi",
"geoid": 188378
},
{
"name": "Delhi, South West Delhi, Delhi",
"geoid": 188443
},
{
"name": "Delhi Zaika, Motihari, East Champaran, Bihar",
"geoid": 188584
},
{
"name": "Delhi Zaika Biryani, Siwan:Siwan District:Bihar, Siwan, Bihar",
"geoid": 188576
},
{
"name": "Delhi-Kolkata Highway, Amas Taluk, Gaya, Bihar",
"geoid": 187970
},
{
"name": "Delhi Juice Corner, Motihari, East Champaran, Bihar",
"geoid": 187858
},
{
"name": "Delhi–Howrah railway, Veerchand Patel Road Area, Patna, Patna, Bihar",
"geoid": 187842
},
{
"name": "Delhi–Howrah railway, Rajendra Nagar:Patna, Patna, Bihar",
"geoid": 187840
},
{
"name": "Delhi Cantonment, New Delhi, Delhi",
"geoid": 187390
}
]
}
Real-time, fast suggestions
Get accurate, fast suggestions as users type.
Location-aware results
Bias by latitude and longitude for relevance.
Multi-language support
Localized results in users' preferred language.
Smart filtering
Prioritize populated and frequently searched places.
Status Code | Message | Description |
---|---|---|
400 | Missing required parameters | When query is not provided |
401 | Unauthorized | API key missing or invalid |
429 | Rate limit exceeded | Too many requests in a short time |
500 | Internal Server Error | Something went wrong on our side |
lat
and lon
for biasing results based on user's locationlimit
to avoid overloading the UI with suggestions