Autocomplete API
Type-aheaddevPage.apis.autocomplete.description
Overview
The Autocomplete API returns fast, typo-tolerant place suggestions as the user types. Each suggestion includes a ready-to-display label, its category and coordinates, so you can power a search box in a few lines. Bias results toward the user with lat/lon, restrict them with a bounding box, or filter by place type.
API reference
GET
/api/1/autocomplete| Parameter | Type | Status |
|---|---|---|
| q | string | Required |
| limit | integer | Optional |
| lang | string | Optional |
| lat | number | Optional |
| lon | number | Optional |
| osm_tag | string | Optional |
Example request
Credit cost: 1 creditcurl "https://osrmroute.com/api/1/autocomplete?q=niz&lang=az&lat=40.40&lon=49.86&key=YOUR_KEY"
Other services
Routing APIRoute Optimization APIGeocoding APIPlaces APIMatrix APIIsochrones APIMap Matching APINearest APITrip API (TSP)Location ClusteringDirections APIAlternative Routes APISnap to Road APIBatch Geocoding APITimezone APIElevation APIBoundary Lookup APIGeofencing APIElevation Profile APISolar APIGeometry Utilities APICoordinate Conversion APICountry Info API