searchAddressesNearby

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

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 SearchCallback.onError will be called with SearchCancellationException.

Return

SearchRequestTask 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: SearchCallback): SearchRequestTask

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 SearchCallback.onError will be called with SearchCancellationException.

Return

SearchRequestTask 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.