public class RevGeoSearchApiImpl extends java.lang.Object implements RevGeoSearchApi
Constructor and Description |
---|
RevGeoSearchApiImpl(OnlineSearchServiceConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
cancelSearchIfRunning()
Cancels the current reverse geocoding search request.
|
Scheduler |
getResultScheduler() |
Scheduler |
getWorkingScheduler() |
Single<ReverseGeocoderSearchResponse> |
reverseGeocoding(ReverseGeocoderSearchQuery query)
Performs reactive reverse geocoding search action based on provided query object and
returns the result to Observers subscribed to returned Single.
|
void |
reverseGeocoding(ReverseGeocoderSearchQuery query,
RevGeoSearchResultListener listener)
Performs reverse geocoding search action based on provided query object and
returns the result with usage of RevGeoSearchCallback implementation.
|
public RevGeoSearchApiImpl(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<ReverseGeocoderSearchResponse> reverseGeocoding(ReverseGeocoderSearchQuery query)
RevGeoSearchApi
reverseGeocoding
in interface RevGeoSearchApi
query
- The object which contains data necessary to execute search actionpublic void reverseGeocoding(ReverseGeocoderSearchQuery query, RevGeoSearchResultListener listener)
RevGeoSearchApi
reverseGeocoding
in interface RevGeoSearchApi
query
- The object which contains data necessary to execute search actionlistener
- The listener which informs the subscriber when search result is available.
It contains ReverseGeocoderSearchResponse
object.public void cancelSearchIfRunning()
RevGeoSearchApi
cancelSearchIfRunning
in interface RevGeoSearchApi