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 reactive additional data search action based on provided query object and
returns the result to Observers subscribed to returned Observable.
|
void |
additionalDataSearch(AdditionalDataSearchQuery query,
AdditionalDataSearchResultListener listener)
Performs additional data search action based on provided query object
and returns the result with usage of 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<BatchSearchResponse> |
batchSearch(BatchSearchQuery query)
Performs reactive batch search action based on provided query object and
returns the result to Observers subscribed to returned Observable.
|
void |
batchSearch(BatchSearchQuery query,
BatchSearchResultListener listener)
Performs batch search action based on provided query object
and returns the result with usage of callback implementation.
|
void |
cancelSearchIfRunning()
Cancels all current search requests.
|
static SearchApi |
create(android.content.Context context)
Creates new SearchAPI object which will use 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 reactive geometry search action based on 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 BatchSearchApi |
getBatchSearchApi() |
protected FuzzySearchApi |
getFuzzySearchApi() |
protected GeometrySearchApi |
getGeometrySearchApi() |
protected RevGeoSearchApi |
getRevgeoSearchApi() |
boolean |
isInternetAvailable()
Checks if the internet is available.
|
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
ReverseGeocoderSearchQuery object
and returns the result with usage of RevGeoSearchResultListener implementation. |
Single<FuzzySearchResponse> |
search(FuzzySearchQuery searchQuery)
Performs reactive search action based on provided query object
and returns the result to Observers subscribed to 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 data necessary to execute additional data search action.listener
- The callback which informs the subscriber when search result is available.public void batchSearch(BatchSearchQuery query, BatchSearchResultListener listener)
SearchApi
batchSearch
in interface SearchApi
query
- The object which contains data necessary to execute batch search action.listener
- The callback which informs the subscriber when search result is available.public Single<FuzzySearchResponse> search(FuzzySearchQuery searchQuery)
RxSearchApi
search
in interface RxSearchApi
searchQuery
- Object which contains data necessary to execute search actionpublic Single<ReverseGeocoderSearchResponse> reverseGeocoding(ReverseGeocoderSearchQuery query)
RxSearchApi
reverseGeocoding
in interface RxSearchApi
query
- The object which contains data necessary to execute search actionpublic Single<GeometrySearchResponse> geometrySearch(GeometrySearchQuery query)
RxSearchApi
geometrySearch
in interface RxSearchApi
query
- The object which contains data necessary to execute search actionpublic Single<AlongRouteSearchResponse> alongRouteSearch(AlongRouteSearchQuery query)
RxSearchApi
alongRouteSearch
in interface RxSearchApi
query
- Object which contains data necessary to execute search actionpublic Single<AdditionalDataSearchResponse> additionalDataSearch(AdditionalDataSearchQuery query)
RxSearchApi
additionalDataSearch
in interface RxSearchApi
query
- Object which contains data necessary to execute additional data search actionpublic Single<BatchSearchResponse> batchSearch(BatchSearchQuery query)
RxSearchApi
batchSearch
in interface RxSearchApi
query
- Object which contains data necessary to execute batch search actionpublic 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()