This API seems to be fairly new so there aren't many questions about it here, nor many tutorials.
I followed Google's tutorial and got the Autocomplete Android api working in my app. I'm now trying to use the AutocompleteFilter to restrict my results to a certain region or certain types of places.
There seems to be little to no documentation for a beginner like me explaining what to do.
The AutocompleteFilter requires a Collection object. How do I change the the following values into integers?
https://developers.google.com/places/supported_types#table3
Problem was solved by a Google employee himself whom I contacted via our Maps for Work support portal.
Here's a list of Place Types with their integer counterparts.
https://developers.google.com/android/reference/com/google/android/gms/location/places/Place
These can be used to filter the Android Place Autocomplete API.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With