TextSearchOptions

Package: com.eegeo.mapapi.services.poi

A set of parameters for a free-text search.

Constructors

TextSearchOptions(String query, LatLng center)

Type argument Description
String query The text to search for.
LatLng center The latitude and longitude to search around.

Methods

TextSearchOptions radius(double radius)

Sets the search result boost radius around the center.

Returns: This TextSearchOptions object.

Type argument Description
double radius The search result boost radius in metres.

TextSearchOptions number(int number)

Sets the maximum number of search results to return.

Returns: This TextSearchOptions object.

Type argument Description
int number The search result limit.

TextSearchOptions minScore(double minScore)

Sets the minimum score of results. The higher this is set, the fewer results will match.

Returns: This TextSearchOptions object.

Type argument Description
double minScore The minimum acceptable score for results.

TextSearchOptions indoorId(String indoorId)

Sets the ID of the indoor map to search in. If not specified, searches outdoors.

Returns: This TextSearchOptions object.

Type argument Description
String indoorId The indoor map ID to search in.

TextSearchOptions floorNumber(int floorNumber)

Sets the floor number to search on. If searching indoors and not specified, defaults to floor 0.

Returns: This TextSearchOptions object.

Type argument Description
int floorNumber The floor number to search on.

TextSearchOptions floorDropoff(int floorDropoff)

Sets the floor dropoff. Defaults to 15.

Returns: This TextSearchOptions object.

Type argument Description
int floorDropoff The number of floors above and below to search on.

TextSearchOptions onPoiSearchCompletedListener(OnPoiSearchCompletedListener onPoiSearchCompletedListener)

Sets a listener to receive search results when the search completes.

Returns: This TextSearchOptions object.

Type argument Description
OnPoiSearchCompletedListener onPoiSearchCompletedListener A listener implementing the OnPoiSearchCompletedListener interface.
v0.0.1467
Overview Introduction
Picking PickResult
Widgets (Optional) BlueSphere
Tag Service (Optional) TagService OnTagsLoadCompletedListener
RouteView Widget (Optional) RouteView RouteViewOptions