public class

AutocompleteFilter

extends Object
implements Parcelable Parcelable
java.lang.Object
   ↳ com.google.android.gms.location.places.AutocompleteFilter

Class Overview

Filter for customizing the autocomplete predictions from the Geo Data API.

Use AutocompleteFilter.Builder to create a new AutocompleteFilter.

Summary

Nested Classes
class 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
From interface android.os.Parcelable
Public Methods
int getTypeFilter()
A filter used to restrict the type of the results returned.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final int TYPE_FILTER_ADDRESS

Only return geocoding results with a precise address.

Constant Value: 2 (0x00000002)

public static final int TYPE_FILTER_CITIES

Return any result matching the following place types:

Constant Value: 5 (0x00000005)

public static final int TYPE_FILTER_ESTABLISHMENT

Only return results that are classified as businesses.

Constant Value: 34 (0x00000022)

public static final int TYPE_FILTER_GEOCODE

Only return geocoding results, rather than business results. For example, parks, cities and street addresses.

Constant Value: 1007 (0x000003ef)

public static final int TYPE_FILTER_NONE

An empty type filter. All results will be returned.

Constant Value: 0 (0x00000000)

public static final int TYPE_FILTER_REGIONS

Return any result matching the following place types:

Constant Value: 4 (0x00000004)

Public Methods

public int getTypeFilter ()

A filter used to restrict the type of the results returned.

Possible values:

Returns
int