AutocompleteFilter.Builder

public static final class AutocompleteFilter.Builder extends Object

Public Constructor Summary

AutocompleteFilter.Builder()
Creates a new builder for an AutocompleteFilter.

Public Method Summary

AutocompleteFilter
AutocompleteFilter.Builder
setCountry(String country)
The country to restrict results to.
AutocompleteFilter.Builder
setTypeFilter(int typeFilter)
Allows you to restrict the result set of a Place Autocomplete request.

Inherited Method Summary

Public Constructors

public AutocompleteFilter.Builder ()

Creates a new builder for an AutocompleteFilter.

Public Methods

public AutocompleteFilter.Builder setCountry (String country)

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

public AutocompleteFilter.Builder setTypeFilter (int typeFilter)

Allows you to restrict the result set of a Place Autocomplete request.

Valid values are:

Parameters
typeFilter