java.lang.Object | |
↳ | com.google.android.gms.location.places.AutocompleteFilter.Builder |
Builder for an AutocompleteFilter
.
After setting the optional parameters, call build()
and pass the result to
getAutocompletePredictions(GoogleApiClient, String, LatLngBounds, AutocompleteFilter)
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new builder for an
AutocompleteFilter . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an
AutocompleteFilter that can be passed to
getAutocompletePredictions(GoogleApiClient, String, LatLngBounds, AutocompleteFilter) . | |||||||||||
The country to restrict results to.
| |||||||||||
Allows you to restrict the result set of a Place Autocomplete request.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns an AutocompleteFilter
that can be passed to
getAutocompletePredictions(GoogleApiClient, String, LatLngBounds, AutocompleteFilter)
.
Returns | |
---|---|
AutocompleteFilter |
The country to restrict results to. This should be a ISO 3166-1 Alpha-2 country code (case insensitive). If this is not set, no country filtering will take place.
Parameters | |
---|---|
country |
String
|
Returns | |
---|---|
AutocompleteFilter.Builder |
Allows you to restrict the result set of a Place Autocomplete request.
Valid values are:
TYPE_FILTER_NONE
TYPE_FILTER_GEOCODE
TYPE_FILTER_ADDRESS
TYPE_FILTER_ESTABLISHMENT
TYPE_FILTER_REGIONS
TYPE_FILTER_CITIES
Parameters | |
---|---|
typeFilter |
int
|
Returns | |
---|---|
AutocompleteFilter.Builder |