2015-06-16 21 views
5

Pracuję nad andorid google umieszcza api Autouzupełnianie, wszystko działa dobrze, ale kiedy ustawię niestandardowe LatLongBounds, aby ograniczyć wyszukiwanie do określonego obszaru dla obiektu GoogleApiClient, zwrócone wyniki nie są to związane. Nie robię tego, co robię źle. To właśnie robię.Google Places API (Android) LatLongBounds Nie działa

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); 

Odpowiedz

Powiązane problemy