Country restriction in autocompleteFilter in android

882 views Asked by At

I am working on google places api. I use AutoComplteFilter to set the filter in search results. As menthioned in this lynk

i try to restrict my results within the specified country. But i am not able to access this method setCountry(String country) in AutoCompleteFilter.Builder api. Am i missing something? How to use this method? FYI, i am using google playservice version 9.0.2.

1

There are 1 answers

1
sivaBE35 On BEST ANSWER
https://maps.googleapis.com/maps/api/place/autocomplete/json?key=AIzaS...............&components=country:IS&language=en

Here i set country IS -iceland and language english

alternaview and playservice above 9.6 Use this

and set AutocompleteFilter