Search Autocomplete for location and places?

Hi, i am trying to configure autocomplete for search within my app, and need to pull both locations e.g. cities, as well as places of interest e.g. central park, NYC from the tomtom maps api. Any ideas on how best to acheive this? Thanks

Hi there!

Fuzzy Search seems to be the closest to what you are looking for - it will return addresses or places for a query the user enters.
You can also combine it with *Autocomplete* to offer suggestions for a particular place type or brand.

Also good to check the Search Best practices page for tips and tricks to build a better search experience: https://developer.tomtom.com/search-api/best-practices

1 Like

You might also take a look at our Time to Leave tutorial. It implements autocomplete feature and the full source code is available on GitHub: https://github.com/tomtom-international/tomtom-use-case-time-to-leave-android/blob/30558caa67ebf8e00e36ce3cbd75840141a306dd/app/src/main/java/com/tomtom/timetoleave/MainActivity.java#L277

1 Like