AI-generated Key Takeaways
-
The AutocompleteFilter class and the Google Play Services Places SDK are deprecated; a new SDK is available and migrating is recommended.
-
AutocompleteFilter is used to customize autocomplete predictions from the Geo Data API.
-
The AutocompleteFilter.Builder nested class is used to create instances of AutocompleteFilter.
-
Various constant filters exist to specify the type of results returned, such as addresses, cities, establishments, or geocodes.
-
The getTypeFilter method retrieves the currently set filter type.
This class is deprecated.
The Google Play Services Places SDK is deprecated. A new SDK is available.
See the client
migration guide for more information.
Filter for customizing the autocomplete predictions from the Geo Data API.
Use AutocompleteFilter.Builder
to create a new AutocompleteFilter.
Nested Class Summary
| class | AutocompleteFilter.Builder | Builder for an AutocompleteFilter. |
|
Constant Summary
| 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: |
Inherited Constant Summary
Public Method Summary
| int |
getTypeFilter()
A filter used to restrict the type of the results returned.
|
Inherited Method Summary
Constants
public static final int TYPE_FILTER_ADDRESS
Only return geocoding results with a precise address.
public static final int TYPE_FILTER_CITIES
Return any result matching the following place types:
public static final int TYPE_FILTER_ESTABLISHMENT
Only return results that are classified as businesses.
public static final int TYPE_FILTER_GEOCODE
Only return geocoding results, rather than business results. For example, parks, cities and street addresses.
public static final int TYPE_FILTER_NONE
An empty type filter. All results will be returned.
public static final int TYPE_FILTER_REGIONS
Return any result matching the following place types:
Public Methods
public int getTypeFilter ()
A filter used to restrict the type of the results returned.
Possible values: