public class OnlineSearchApi extends java.lang.Object implements SearchApi
DEFAULT_ONLINE_SEARCH_ENDPOINT, DEFAULT_ONLINE_SEARCH_SERVICE_API_VERSION
Modifier and Type | Method and Description |
---|---|
Single<AdditionalDataSearchResponse> |
additionalDataSearch(AdditionalDataSearchQuery query)
Performs a reactive additional data search action based on the provided query object, and
returns the result to Observers subscribed to the returned Observable.
|
void |
additionalDataSearch(AdditionalDataSearchQuery query,
AdditionalDataSearchResultListener listener)
Performs an additional data search action based on the provided query object,
and returns the result with usage of the callback implementation.
|
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.
|
Single<AutocompleteSearchResponse> |
autocompleteSearch(AutocompleteSearchQuery query)
Performs a reactive Autocomplete search action based on the provided query object,
and returns the result to Observers subscribed to the returned Observable.
|
void |
autocompleteSearch(AutocompleteSearchQuery query,
AutocompleteSearchResultListener listener)
Performs an Autocomplete search action based on the provided query object,
and returns the result using the callback implementation.
|
Single<BatchSearchResponse> |
batchSearch(BatchSearchQuery query)
Performs a reactive Batch Search action based on the provided query object, and
returns the result to Observers subscribed to the returned Observable.
|
void |
batchSearch(BatchSearchQuery query,
BatchSearchResultListener listener)
Performs a Batch Search action based on the provided query object,
and returns the result with usage of the callback implementation.
|
void |
cancelSearchIfRunning()
Cancels all current search requests.
|
static SearchApi |
create(android.content.Context context)
Creates a new SearchAPI object which will use the provided search API Key.
|
static SearchApi |
create(android.content.Context context,
java.lang.String apiKey)
Creates new SearchAPI object which will use Search API Key obtained from parameter.
|
Single<GeometrySearchResponse> |
geometrySearch(GeometrySearchQuery query)
Performs a reactive geometry search action based on the provided query 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. |
protected AdditionalDataSearchApi |
getAdditionalDataSearchApi() |
protected AlongRouteSearchApi |
getAlongRouteSearchApi() |
protected AutocompleteSearchApi |
getAutocompleteSearchApi() |
protected BatchSearchApi |
getBatchSearchApi() |
protected FuzzySearchApi |
getFuzzySearchApi() |
protected GeometrySearchApi |
getGeometrySearchApi() |
protected PoiCategoriesSearchApi |
getPoiCategoriesSearchApi() |
protected RevGeoSearchApi |
getRevgeoSearchApi() |
boolean |
isInternetAvailable()
Checks if the internet is available.
|
Single<PoiCategoriesResponse> |
poiCategoriesSearch(PoiCategoriesQuery query)
Performs a reactive POI Categories search action based on the provided query object,
and returns the result to Observers subscribed to the returned Observable.
|
void |
poiCategoriesSearch(PoiCategoriesQuery query,
PoiCategoriesSearchResultListener listener)
Performs a POI Categories search action based on the provided query object,
and returns the result with usage of the callback implementation.
|
Single<ReverseGeocoderSearchResponse> |
reverseGeocoding(ReverseGeocoderSearchQuery query)
Performs a reactive reverse geocoding search action based on the 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
ReverseGeocoderSearchQuery object
and returns the result with usage of RevGeoSearchResultListener implementation. |
Single<FuzzySearchResponse> |
search(FuzzySearchQuery searchQuery)
Performs a reactive search action based on the provided query object,
and returns the result to Observers subscribed to the returned Observable.
|
void |
search(FuzzySearchQuery searchQuery,
FuzzySearchResultListener listener)
Performs search action based on provided
FuzzySearchQuery object and
returns the result with usage of FuzzySearchResultListener implementation. |
public static SearchApi create(@NonNull android.content.Context context)
public static SearchApi create(@NonNull android.content.Context context, java.lang.String apiKey)
public void search(FuzzySearchQuery searchQuery, FuzzySearchResultListener listener)
SearchApi
FuzzySearchQuery
object and
returns the result with usage of FuzzySearchResultListener
implementation.search
in interface SearchApi
searchQuery
- The object which contains data necessary to execute search action.listener
- The listener which informs the subscriber when search result is available. It contains FuzzySearchResponse
object.public void reverseGeocoding(ReverseGeocoderSearchQuery query, RevGeoSearchResultListener listener)
SearchApi
ReverseGeocoderSearchQuery
object
and returns the result with usage of RevGeoSearchResultListener
implementation.reverseGeocoding
in interface SearchApi
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
objectpublic void geometrySearch(GeometrySearchQuery query, GeometrySearchResultListener listener)
SearchApi
GeometrySearchQuery
object
and returns the result with usage of GeometrySearchResultListener
implementation.geometrySearch
in interface SearchApi
query
- The object which contains data necessary to execute search actionlistener
- The listener which informs the subscriber when search result is available. It contains Response objectpublic void alongRouteSearch(AlongRouteSearchQuery query, AlongRouteSearchResultListener listener)
SearchApi
alongRouteSearch
in interface SearchApi
query
- The object which contains data necessary to execute search action.listener
- The callback which informs the subscriber when search result is available.public void additionalDataSearch(AdditionalDataSearchQuery query, AdditionalDataSearchResultListener listener)
SearchApi
additionalDataSearch
in interface SearchApi
query
- The object which contains the data necessary to execute an additional data search action.listener
- The callback which informs the subscriber when the search result is available.public void batchSearch(BatchSearchQuery query, BatchSearchResultListener listener)
SearchApi
batchSearch
in interface SearchApi
query
- The object which contains the data necessary to execute a Batch Search action.listener
- The callback which informs the subscriber when the search result is available.public void poiCategoriesSearch(PoiCategoriesQuery query, PoiCategoriesSearchResultListener listener)
SearchApi
poiCategoriesSearch
in interface SearchApi
query
- The object which contains the data necessary to execute a POI Categories search action.listener
- The callback which informs the subscriber when the search result is available.public void autocompleteSearch(AutocompleteSearchQuery query, AutocompleteSearchResultListener listener)
SearchApi
autocompleteSearch
in interface SearchApi
query
- The object containing the data necessary to execute an Autocomplete search action.listener
- The callback informing the subscriber when the search result is available.public Single<FuzzySearchResponse> search(FuzzySearchQuery searchQuery)
RxSearchApi
search
in interface RxSearchApi
searchQuery
- Object which contains the data necessary to execute a search action.public Single<ReverseGeocoderSearchResponse> reverseGeocoding(ReverseGeocoderSearchQuery query)
RxSearchApi
reverseGeocoding
in interface RxSearchApi
query
- Object which contains data necessary to execute search actionpublic Single<GeometrySearchResponse> geometrySearch(GeometrySearchQuery query)
RxSearchApi
geometrySearch
in interface RxSearchApi
query
- Object which contains the data necessary to execute a search actionpublic Single<AlongRouteSearchResponse> alongRouteSearch(AlongRouteSearchQuery query)
RxSearchApi
alongRouteSearch
in interface RxSearchApi
query
- Object which contains the data necessary to execute a search action.public Single<AdditionalDataSearchResponse> additionalDataSearch(AdditionalDataSearchQuery query)
RxSearchApi
additionalDataSearch
in interface RxSearchApi
query
- Object which contains the data necessary to execute an additional data search action.public Single<BatchSearchResponse> batchSearch(BatchSearchQuery query)
RxSearchApi
batchSearch
in interface RxSearchApi
query
- Object which contains the data necessary to execute a Batch Search action.public Single<PoiCategoriesResponse> poiCategoriesSearch(PoiCategoriesQuery query)
RxSearchApi
poiCategoriesSearch
in interface RxSearchApi
query
- The object which contains the data necessary to execute the POI Categories search action.public Single<AutocompleteSearchResponse> autocompleteSearch(AutocompleteSearchQuery query)
RxSearchApi
autocompleteSearch
in interface RxSearchApi
query
- The object which contains the data necessary to execute the Autocomplete search action.public boolean isInternetAvailable()
SearchApi
isInternetAvailable
in interface SearchApi
public void cancelSearchIfRunning()
SearchApi
cancelSearchIfRunning
in interface SearchApi
protected FuzzySearchApi getFuzzySearchApi()
protected RevGeoSearchApi getRevgeoSearchApi()
protected GeometrySearchApi getGeometrySearchApi()
protected AlongRouteSearchApi getAlongRouteSearchApi()
protected AdditionalDataSearchApi getAdditionalDataSearchApi()
protected BatchSearchApi getBatchSearchApi()
protected PoiCategoriesSearchApi getPoiCategoriesSearchApi()
protected AutocompleteSearchApi getAutocompleteSearchApi()