sdk / com.mapbox.search / SearchEngine / select

select

abstract fun select(suggestion: SearchSuggestion, callback: SearchSelectionCallback): SearchRequestTask

The second step of forward geocoding. Call this function to get a SearchResult (with coordinates) from a SearchSuggestion.

Parameters

suggestion - search suggestion to resolve and get the final result with address and coordinates.

callback - callback to retrieve SearchResult with resolved coordinates.

Return
SearchRequestTask to be able to cancel request.