Auto Complete
Help users find what they're looking for without requiring them to fully specify their search term.
Url
Method: GET
https://maps.track-asia.com/api/v1/autocomplete
Example
https://maps.track-asia.com/api/v1/autocomplete?lang=vi&text=2 Nguyen Hue&key=public_key
https://maps.track-asia.com/api/v1/autocomplete?lang=vi&text=2 Nguyen Hue&focus.point.lat=10.761&focus.point.lon=106.68&key=public_key
Parameters
Parameter | Values | Description | Example |
---|---|---|---|
lang | Target language | The target language code in the BCP47 standard. Only the language subtag information is used to set the target language e.g. en | vi |
text | String (required) | Representing what a user has typed | 2 Nguyen Hue |
size | Number | The number of results returned | |
focus.point.lat | {latitude} | Latitude to focus search based on geographic area | 10.761 |
focus.point.lon | {longitude} | Longitude to focus search based a geographical area | 106.68 |
key | String (required) | API key | public_key |