LocationPickerActivity.SEARCH_ZONE not working!!!See original GitHub issue
I want to show the LocationPickerActivity to only display place searches and location results within UAE. I tried to set SEARCH ZONE as mentioned below.
Intent placePickerIntent = new Intent(this, LocationPickerActivity.class); placePickerIntent.putExtra(LocationPickerActivity.SEARCH_ZONE, "ar_AE"); placePickerIntent.putExtra(LocationPickerActivity.BACK_PRESSED_RETURN_OK, true); startActivityForResult(placePickerIntent, PLACE_PICKER_REQUEST);
But is not working. Instead of showing the results within UAE, t is showing the rresults from all around. Please help.
- Created 7 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
@ashaantony @sprengerst to improve this we can add the UAE or whatever region rect coordinates we would like in the CountryLocaleRect.java class for now. In a future release we could parametrize that to inject your desired zone when instantiating the LocationPickerActivity.
I’m going to add the coordinates and create a release. 😉