googlearchive / android-play-places

Deprecated:
https://github.com/googlemaps/android-places-demos
Apache License 2.0
477 stars 580 forks source link

How to set more than one country to the Autocomplete Filter #69

Closed satyam-27 closed 5 years ago

satyam-27 commented 6 years ago

val autoCompleteFilter = AutocompleteFilter.Builder().setTypeFilter(Place.TYPE_COUNTRY) .setCountry("IN") .build()

I want to restrict results for more than one country, How can I achieve that?

hamidsn commented 6 years ago

Maybe ['us', 'pr', 'vi', 'gu', 'mp'] ?!? Documentation says only one country https://developers.google.com/android/reference/com/google/android/gms/location/places/AutocompleteFilter.Builder

satyam-27 commented 6 years ago

setCountry("IN")

above method takes only string but you are suggesting string array. Cant pass string array as string. Is there are way to set more than one country?

codingjeremy commented 5 years ago

This sample has been deprecated/archived (check README for more information on newer samples related to this technology).

As recommended by GitHub, we are closing all issues and pull requests.