public interface SearchAPI extends RequiresInternetConnectivity
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ONLINE_SEARCH_ENDPOINT
Default TomTom's OnlineSearch endpoint
|
static java.lang.String |
DEFAULT_ONLINE_SEARCH_SERVICE_API_VERSION
Default TomTom's OnlineSearch service version
|
Modifier and Type | Method and Description |
---|---|
void |
cancelSearchIfRunning()
Cancels the current search request
|
Single<ReverseGeocoderResult> |
reverseGeocoding(ReverseGeocoderQuery query)
Performs reactive reverse geocoding search action based on provided ReverseGeocoderQueryBuilder object and returns the result to Observers subscribed to returned Single.
|
void |
reverseGeocoding(ReverseGeocoderQuery query,
RevGeoSearchCallback callback)
Performs reverse geocoding search action based on provided ReverseGeocoderQueryBuilder object and returns the result with usage of RevGeoSearchCallback implementation.
|
Observable<SearchResponse> |
search(SearchQuery searchQuery)
Performs reactive search action based on provided SearchQuery object and returns the result to Observers subscribed to returned Observable.
|
void |
search(SearchQuery searchQuery,
SearchCallback searchCallback)
Performs search action based on provided SearchQuery object and returns the result with usage of SearchCallback implementation.
|
callsRequireInternet, isInternetAvailable
static final java.lang.String DEFAULT_ONLINE_SEARCH_ENDPOINT
static final java.lang.String DEFAULT_ONLINE_SEARCH_SERVICE_API_VERSION
Single<ReverseGeocoderResult> reverseGeocoding(ReverseGeocoderQuery query)
query
- The object which contains data necessary to execute search actionvoid reverseGeocoding(ReverseGeocoderQuery query, RevGeoSearchCallback callback)
query
- The object which contains data necessary to execute search actioncallback
- The callback which informs the subscriber when search result is available. It contains ReverseGeocoderResult objectvoid search(SearchQuery searchQuery, SearchCallback searchCallback)
searchQuery
- The object which contains data necessary to execute search action.searchCallback
- The callback which informs the subscriber when search result is available. It contains SearchResponse object.void cancelSearchIfRunning()
Observable<SearchResponse> search(SearchQuery searchQuery)
searchQuery
- Object which contains data necessary to execute search action