Summary: Nested Classes | Constants | Inherited Constants | Methods | Inherited Methods | [Expand All]
public class

# AutocompleteFilter

extends Object
implements SafeParcelable 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: `TYPE_LOCALITY` `TYPE_ADMINISTRATIVE_AREA_LEVEL_3`
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: `TYPE_LOCALITY` `TYPE_SUBLOCALITY` `TYPE_POSTAL_CODE` `TYPE_COUNTRY` `TYPE_ADMINISTRATIVE_AREA_LEVEL_1` `TYPE_ADMINISTRATIVE_AREA_LEVEL_2`

[Expand] Inherited Constants
From interface com.google.android.gms.common.internal.safeparcel.SafeParcelable
String | NULL |
From interface android.os.Parcelable
int | CONTENTS_FILE_DESCRIPTOR |
int | PARCELABLE_WRITE_RETURN_VALUE |

Public Methods
int | getTypeFilter() A filter used to restrict the type of the results returned.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface android.os.Parcelable
abstract int | describeContents()
abstract void | writeToParcel(Parcel arg0, int arg1)

## 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:

- `TYPE_LOCALITY`
- `TYPE_ADMINISTRATIVE_AREA_LEVEL_3`

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:

- `TYPE_LOCALITY`
- `TYPE_SUBLOCALITY`
- `TYPE_POSTAL_CODE`
- `TYPE_COUNTRY`
- `TYPE_ADMINISTRATIVE_AREA_LEVEL_1`
- `TYPE_ADMINISTRATIVE_AREA_LEVEL_2`

Constant Value: 4 (0x00000004)

## Public Methods

#### public int getTypeFilter ()

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`