【发布时间】:2019-03-19 13:51:26
【问题描述】:
无法过滤特定城市限制。请任何人提供如下代码所示的建议
private static final LatLngBounds BOUNDS_HYDERABAD = new LatLngBounds(
new LatLng(17.3850,78.4867), new LatLng(17.3850,78.4867));
Intent intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_OVERLAY)
.setFilter(autocompleteFilter)
.setBoundsBias(BOUNDS_HYDERABAD)
.build(MapsActivity.this);
startActivityForResult(intent, PLACE_AUTOCOMPLETE_REQUEST_CODE);
【问题讨论】:
标签: android google-maps filter autocompletetextview