search

abstract fun search(query: String, options: OfflineSearchOptions, executor: Executor, callback: SearchCallback): SearchRequestTask

Performs forward geocoding search request. Each new search request cancels the previous one if it is still in progress. In this case SearchCallback.onError will be called with SearchCancellationException.

Return

SearchRequestTask object which allows to cancel the request.

See also

Parameters

query

Search query.

options

Search options.

executor

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

callback

The callback to handle search result.

open fun search(query: String, options: OfflineSearchOptions, callback: SearchCallback): SearchRequestTask

Performs forward geocoding search request. Each new search request cancels the previous one if it is still in progress. In this case SearchCallback.onError will be called with SearchCancellationException.

Return

SearchRequestTask object which allows to cancel the request.

See also

Parameters

query

Search query.

options

Search options.

callback

The callback to handle search result on the main thread.