【发布时间】:2015-09-01 04:24:17
【问题描述】:
我正在研究 andorid google places api Autocomplete,一切正常,但是当我设置自定义 LatLongBounds 以将搜索限制在 GoogleApiClient 对象的特定区域时,返回的结果不在该范围内。我不知道我做错了什么。这就是我正在做的。
LatLngBounds bounds = new LatLngBounds(new LatLng(24.85764939832254,67.0641630948748), new LatLng(24.866642601677466,67.07407490512522));
LatLng northeast = bounds.northeast;
LatLng southwest = bounds.southwest;
android.util.Log.e("North-East", northeast.toString());
android.util.Log.e("South-West", southwest.toString());
mAdapter = new PlaceAutocompleteAdapter(getActivity(), android.R.layout.simple_list_item_1, GoogleApiClientHelper.get(getActivity()).getGoogleApiClient(), bounds, null);
mAutocompleteView.setAdapter(mAdapter);
【问题讨论】: