public interface GeometrySearchApi
extends com.tomtom.online.sdk.common.rx.RxContext
Modifier and Type | Method and Description |
---|---|
void |
cancelSearchIfRunning()
Cancels the current geometry search request.
|
Single<GeometrySearchResponse> |
geometrySearch(GeometrySearchQuery query)
Performs reactive geometry search action based on provided GeometrySearchQuery object and returns the result to Observers subscribed to returned Single.
|
void |
geometrySearch(GeometrySearchQuery query,
GeometrySearchResultListener listener)
Performs geometry search action based on provided GeometrySearchQuery object and returns the result with usage of GeometrySearchResultListener implementation.
|
Single<GeometrySearchResponse> geometrySearch(GeometrySearchQuery query)
query
- The object which contains data necessary to execute search actionvoid geometrySearch(GeometrySearchQuery query, GeometrySearchResultListener listener)
query
- The object which contains data necessary to execute search actionlistener
- The listener which informs the subscriber when search result is available. It contains GeometrySearchResult objectvoid cancelSearchIfRunning()