In the new google places API, they come with a new feature called PlacePicker. It\'s a simple activity to select a place of the list/map of places they have.
In the
Apparently right now, android have documentation to do some filtering using AutocompleteFilter class. The documentation of Place Autocomplete
example of usage :
//set boundary on build place picker fragment
PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder();
builder.setLatLngBounds(bounds);
//set filter type by country 'malaysia'
AutocompleteFilter typeFilter = new AutocompleteFilter.Builder()
.setTypeFilter(1013) //set point of interest
.setCountry("MY")
.build();
try {
Intent intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_OVERLAY)
.setFilter(typeFilter)
.build(MainActivity.this);
startActivityForResult(intent, PLACE_AUTOCOMPLETE_REQUEST_CODE);
} catch (GooglePlayServicesRepairableException e) {
// TODO: Handle the error.
} catch (GooglePlayServicesNotAvailableException e) {
// TODO: Handle the error.
}