java.lang.Object | |
↳ | com.google.android.gms.location.places.AutocompleteFilter |
Filter for customizing the autocomplete predictions from the Geo Data API.
Use AutocompleteFilter.Builder
to create a new
AutocompleteFilter
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AutocompleteFilter.Builder | Builder for an AutocompleteFilter . |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | TYPE_FILTER_ADDRESS | Only return geocoding results with a precise address. | |||||||||
int | TYPE_FILTER_CITIES | Return any result matching the following place types: | |||||||||
int | TYPE_FILTER_ESTABLISHMENT | Only return results that are classified as businesses. | |||||||||
int | TYPE_FILTER_GEOCODE | Only return geocoding results, rather than business results. | |||||||||
int | TYPE_FILTER_NONE | An empty type filter. | |||||||||
int | TYPE_FILTER_REGIONS | Return any result matching the following place types: |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A filter used to restrict the type of the results returned.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Only return geocoding results with a precise address.
Return any result matching the following place types:
Only return results that are classified as businesses.
Only return geocoding results, rather than business results. For example, parks, cities and street addresses.
An empty type filter. All results will be returned.
Return any result matching the following place types:
TYPE_LOCALITY
TYPE_SUBLOCALITY
TYPE_POSTAL_CODE
TYPE_COUNTRY
TYPE_ADMINISTRATIVE_AREA_LEVEL_1
TYPE_ADMINISTRATIVE_AREA_LEVEL_2
A filter used to restrict the type of the results returned.
Possible values:
TYPE_FILTER_NONE
TYPE_FILTER_GEOCODE
TYPE_FILTER_ADDRESS
TYPE_FILTER_ESTABLISHMENT
TYPE_FILTER_REGIONS
TYPE_FILTER_CITIES
Returns | |
---|---|
int |