reverseGeocoding

abstract fun reverseGeocoding(options: OfflineReverseGeoOptions, executor: Executor, callback: OfflineSearchCallback): AsyncOperationTask

Performs reverse geocoding search request. Each new search request cancels the previous one if it is still in progress. In this case OfflineSearchCallback.onError will be called with com.mapbox.search.common.SearchCancellationException.

Return

AsyncOperationTask object which allows to cancel the request.

Parameters

options

Reverse geocoding options.

executor

Executor used for events dispatching. By default events are dispatched on the main thread.

callback

Search result callback.


open fun reverseGeocoding(options: OfflineReverseGeoOptions, callback: OfflineSearchCallback): AsyncOperationTask

Performs reverse geocoding search request. Each new search request cancels the previous one if it is still in progress. In this case OfflineSearchCallback.onError will be called with com.mapbox.search.common.SearchCancellationException.

Return

AsyncOperationTask object which allows to cancel the request.

Parameters

options

Reverse geocoding options.

callback

Search result callback, delivers results on the main thread.