android 中 autocompleteFilter 的国家/地区限制
Country restriction in autocompleteFilter in android
我正在 google 个地方 api 工作。我使用 AutoComplteFilter 在搜索结果中设置过滤器。如本文所述
我尝试将我的结果限制在指定的国家/地区内。但是我无法在 AutoCompleteFilter.Builder api 中访问此方法 setCountry(String country)。我错过了什么吗?如何使用这个方法?仅供参考,我正在使用 google playservice 版本 9.0.2。
https://maps.googleapis.com/maps/api/place/autocomplete/json?key=AIzaS...............&components=country:IS&language=en
这里我设置国家IS -iceland
和语言english
备用视图和playservice above 9.6 Use this
并设置AutocompleteFilter
我正在 google 个地方 api 工作。我使用 AutoComplteFilter 在搜索结果中设置过滤器。如本文所述
我尝试将我的结果限制在指定的国家/地区内。但是我无法在 AutoCompleteFilter.Builder api 中访问此方法 setCountry(String country)。我错过了什么吗?如何使用这个方法?仅供参考,我正在使用 google playservice 版本 9.0.2。
https://maps.googleapis.com/maps/api/place/autocomplete/json?key=AIzaS...............&components=country:IS&language=en
这里我设置国家IS -iceland
和语言english
备用视图和playservice above 9.6 Use this
并设置AutocompleteFilter