I am using in a EditText Google Place Autocomplete
, to search for the streets of a city, at the moment I filter it by Country as follows:
AutocompleteFilter autocompleteFilter = new
AutocompleteFilter.Builder() **.setTypeFilter(Place.TYPE_COUNTRY)
.setCountry("AR")** .build();*
But I need this search to be even more filtered, that it be by a specific city, I tried to do it with TYPE_POSTAL_CODE
but I couldn't implement it.
If you want to restrict the result set of a request to cities.
use the constant:
example:
Valid values for setTypeFilter() are: