searchAddressesNearby

abstract fun searchAddressesNearby(    street: String,     proximity: Point,     radiusMeters: Double,     executor: Executor,     callback: OfflineSearchCallback): AsyncOperationTask

Searches for addresses nearby (around proximity point), matched with specified street name. 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

street

Street name to match.

proximity

Coordinate to search in its vicinity.

radiusMeters

Radius (in meters) around proximity.

executor

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

callback

Search result callback.


open fun searchAddressesNearby(street: String, proximity: Point, radiusMeters: Double, callback: OfflineSearchCallback): AsyncOperationTask

Searches for addresses nearby (around proximity point), matched with specified street name. 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

street

Street name to match.

proximity

Coordinate to search in its vicinity.

radiusMeters

Radius (in meters) around proximity.

callback

Search result callback, delivers results on the main thread.