public interface AlongRouteSearchApi
extends com.tomtom.online.sdk.common.rx.RxContext
Modifier and Type | Method and Description |
---|---|
Single<AlongRouteSearchResponse> |
alongRouteSearch(AlongRouteSearchQuery query)
Performs reactive search along route action based on provided query object and returns the result to Observers subscribed to returned Observable.
|
void |
alongRouteSearch(AlongRouteSearchQuery 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.
|
Single<AlongRouteSearchResponse> alongRouteSearch(AlongRouteSearchQuery query)
query
- Object which contains data necessary to execute search actionvoid alongRouteSearch(AlongRouteSearchQuery 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()