search
Performs forward 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
Search query.
Search options.
Executor used for events dispatching. By default events are dispatched on the main thread.
The callback to handle search result.
Performs forward 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
Search query.
Search options.
The callback to handle search result on the main thread.