Autosuggest API

Get intelligent place suggestions based on partial text input with location bias. Returns places sorted by relevance and proximity.

Try in Playground →

Endpoint

GET/v5/autosuggest.json

Authentication

Include your token in the request header:

X-Authorization-Token: your_token

Parameters

NameTypeDescription
querystringPartial text to search for
latitudenumberCenter latitude for proximity bias
longitudenumberCenter longitude for proximity bias
state_biasbooleanBias results to the same state (default: true)

Code Examples

curl "https://apihub.latlong.ai/v5/autosuggest.json?query=VALUE&latitude=VALUE&longitude=VALUE" \
  -H "X-Authorization-Token: YOUR_TOKEN"

Example Response

JSON
{
  "status": "success",
  "code": 1001,
  "data": [
    {
      "name": "Indiranagar, Bangalore, Karnataka",
      "Coordinates": {
        "latitude": 12.9784,
        "longitude": 77.6408
      }
    },
    {
      "name": "Indiranagar 100 Feet Road, Bangalore",
      "Coordinates": {
        "latitude": 12.9780,
        "longitude": 77.6395
      }
    }
  ]
}

Notes

  • Results are ranked by relevance and distance from the provided coordinates.
  • Set state_bias=false for nationwide results.
  • Minimum 3 characters required for results.