public static class SearchManager.AutocompleteSearchOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_RADIUS
The default search radius in meters.
|
static int |
MAXIMUM_RADIUS
The maximum allowed search radius in meters.
|
static int |
MINIMUM_QUERY_CHARACTERS
The minimum allowed characters for performing an autocomplete query.
|
| Constructor and Description |
|---|
AutocompleteSearchOptions(String searchQuery,
GeoPoint centerPoint)
Constructor for an autocomplete search.
|
| Modifier and Type | Method and Description |
|---|---|
T |
setCenterPoint(GeoPoint point)
Set the center point that the search should be originated from.
|
SearchManager.AutocompleteSearchOptions |
setQuery(String searchQuery)
Set the search query.
|
T |
setRadius(int radiusMeters)
Set the preferred search radius in meters from the center point.
|
T |
setResultsLocale(Locale locale)
Set the preferred locale for the language of the results.
|
String |
toString() |
public static final int MINIMUM_QUERY_CHARACTERS
public static final int DEFAULT_RADIUS
setRadius(int),
Constant Field Valuespublic static final int MAXIMUM_RADIUS
setRadius(int),
Constant Field Valuespublic AutocompleteSearchOptions(String searchQuery, GeoPoint centerPoint)
searchQuery - The search query string.centerPoint - The search center point.SearchManager.AutocompleteSearchOptions.setQuery(String),
setCenterPoint(GeoPoint)public SearchManager.AutocompleteSearchOptions setQuery(String searchQuery)
searchQuery - The search text.SearchManager.SearchManagerException - when the input is null
or does is does not meet the minimum character length defined by
SearchManager.AutocompleteSearchOptions.MINIMUM_QUERY_CHARACTERS.public T setCenterPoint(GeoPoint point)
point - The search center point.SearchManager.SearchManagerException - when the input is invalid.public T setRadius(int radiusMeters)
radiusMeters - The radius in meters.SearchManager.SearchManagerException - when the input is invalid.MAXIMUM_RADIUS,
DEFAULT_RADIUSpublic T setResultsLocale(Locale locale)
locale - The locale or null to use the default;Copyright © 2013-2016 INRIX, Inc. All Rights Reserved.