public interface AlongRouteSearchApi extends RxContext
Modifier and Type | Method and Description |
---|---|
Single<com.tomtom.online.sdk.search.data.alongroute.Response> |
alongRouteSearch(com.tomtom.online.sdk.search.data.alongroute.Query query)
Performs reactive search along route action based on provided query object and returns the result to Observers subscribed to returned Observable.
|
void |
alongRouteSearch(com.tomtom.online.sdk.search.data.alongroute.Query query,
AlongRouteSearchResultListener listener)
Performs along route search action based on provided query object and returns the result with usage of callback implementation.
|
void |
cancelSearchIfRunning()
Cancels the current along route search request.
|
getResultScheduler, getWorkingScheduler
Single<com.tomtom.online.sdk.search.data.alongroute.Response> alongRouteSearch(com.tomtom.online.sdk.search.data.alongroute.Query query)
query
- Object which contains data necessary to execute search actionvoid alongRouteSearch(com.tomtom.online.sdk.search.data.alongroute.Query query, AlongRouteSearchResultListener listener)
query
- The object which contains data necessary to execute search action.listener
- The callback which informs the subscriber when search result is available.void cancelSearchIfRunning()