public class GeometrySearchApiImpl extends java.lang.Object implements GeometrySearchApi
Constructor and Description |
---|
GeometrySearchApiImpl(OnlineSearchServiceConfiguration config) |
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.
|
Scheduler |
getResultScheduler() |
Scheduler |
getWorkingScheduler() |
public GeometrySearchApiImpl(OnlineSearchServiceConfiguration config)
config
- search service connection configuration.@NonNull public Scheduler getWorkingScheduler()
getWorkingScheduler
in interface com.tomtom.online.sdk.common.rx.RxContext
@NonNull public Scheduler getResultScheduler()
getResultScheduler
in interface com.tomtom.online.sdk.common.rx.RxContext
public Single<GeometrySearchResponse> geometrySearch(GeometrySearchQuery query)
GeometrySearchApi
geometrySearch
in interface GeometrySearchApi
query
- The object which contains data necessary to execute search actionpublic void geometrySearch(GeometrySearchQuery query, GeometrySearchResultListener listener)
GeometrySearchApi
geometrySearch
in interface GeometrySearchApi
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 objectpublic void cancelSearchIfRunning()
GeometrySearchApi
cancelSearchIfRunning
in interface GeometrySearchApi