public static class LocalSearch.Builder
extends java.lang.Object
A factory class for creating search requests.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LocalSearch |
build()
Build the search request.
|
LocalSearch.Builder |
setApp(EditorKey appKey)
Set the EditorKey for the app to search in.
|
LocalSearch.Builder |
setLimit(int limit)
Limits the number of results.
|
LocalSearch.Builder |
setListener(LocalSearch.LocalSearchListener listener)
Set a listener to receive events for this search request.
|
LocalSearch.Builder |
setLocation(MeridianLocation location)
Set the location that this search request should center around.
|
LocalSearch.Builder |
setQuery(java.lang.String query)
Set the query string for this request.
|
LocalSearch.Builder |
setTransportType(TransportType transportType)
Set the type of transit that this search can traverse.
|
public LocalSearch.Builder setQuery(java.lang.String query)
Set the query string for this request.
public LocalSearch.Builder setLimit(int limit)
Limits the number of results. Limit results to 20 or less for best performance.
public LocalSearch.Builder setLocation(MeridianLocation location)
Set the location that this search request should center around.
public LocalSearch.Builder setTransportType(TransportType transportType)
Set the type of transit that this search can traverse.
public LocalSearch.Builder setApp(EditorKey appKey)
Set the EditorKey for the app to search in.
public LocalSearch.Builder setListener(LocalSearch.LocalSearchListener listener)
Set a listener to receive events for this search request.
public LocalSearch build()
Build the search request.