Offline Search Engine
interface OfflineSearchEngine
Content copied to clipboard
The OfflineSearchEngine interface provides forward and reverse geocoding search that works offline. An instance of the OfflineSearchEngine can be obtained with MapboxSearchSdk.getOfflineSearchEngine.
Offline forward geocoding search works in a two-step manner, see SearchEngine for more details.
The API of this class is temporary and subject to change. Tiles loading functionality is available to selected customers only. Contact our team, to get early preview.
Types
EngineReadyCallback
Link copied to clipboard
interface EngineReadyCallback
Content copied to clipboard
Interface definition for a callback to be invoked when the OfflineSearchEngine is ready for use.
OnIndexChangeListener
Link copied to clipboard
interface OnIndexChangeListener
Content copied to clipboard
Interface for a listener to be invoked when index data is changed in the OfflineSearchEngine.
Functions
addEngineReadyCallback
Link copied to clipboard
open fun addEngineReadyCallback(callback: OfflineSearchEngine.EngineReadyCallback)
Content copied to clipboard
abstract fun addEngineReadyCallback(executor: Executor, callback: OfflineSearchEngine.EngineReadyCallback)
Content copied to clipboard
addOnIndexChangeListener
Link copied to clipboard
open fun addOnIndexChangeListener(listener: OfflineSearchEngine.OnIndexChangeListener)
Content copied to clipboard
abstract fun addOnIndexChangeListener(executor: Executor, listener: OfflineSearchEngine.OnIndexChangeListener)
Content copied to clipboard
createPlacesTilesetDescriptor
Link copied to clipboard
abstract fun createPlacesTilesetDescriptor(dataset: String, version: String): TilesetDescriptor
Content copied to clipboard
createTilesetDescriptor
Link copied to clipboard
abstract fun createTilesetDescriptor(dataset: String, version: String): TilesetDescriptor
Content copied to clipboard
removeEngineReadyCallback
Link copied to clipboard
abstract fun removeEngineReadyCallback(callback: OfflineSearchEngine.EngineReadyCallback)
Content copied to clipboard
removeOnIndexChangeListener
Link copied to clipboard
abstract fun removeOnIndexChangeListener(listener: OfflineSearchEngine.OnIndexChangeListener)
Content copied to clipboard
reverseGeocoding
Link copied to clipboard
open fun reverseGeocoding(options: OfflineReverseGeoOptions, callback: SearchCallback): SearchRequestTask
Content copied to clipboard
abstract fun reverseGeocoding(options: OfflineReverseGeoOptions, executor: Executor, callback: SearchCallback): SearchRequestTask
Content copied to clipboard
search
Link copied to clipboard
open fun search(query: String, options: OfflineSearchOptions, callback: SearchSuggestionsCallback): SearchRequestTask
Content copied to clipboard
abstract fun search(query: String, options: OfflineSearchOptions, executor: Executor, callback: SearchSuggestionsCallback): SearchRequestTask
Content copied to clipboard
searchAddressesNearby
Link copied to clipboard
open fun searchAddressesNearby(street: String, proximity: Point, radiusMeters: Double, callback: SearchCallback): SearchRequestTask
Content copied to clipboard
abstract fun searchAddressesNearby(street: String, proximity: Point, radiusMeters: Double, executor: Executor, callback: SearchCallback): SearchRequestTask
Content copied to clipboard
select
Link copied to clipboard
open fun select(suggestion: SearchSuggestion, callback: SearchSelectionCallback): SearchRequestTask
Content copied to clipboard
open fun select(suggestion: SearchSuggestion, options: SelectOptions, callback: SearchSelectionCallback): SearchRequestTask
Content copied to clipboard
abstract fun select(suggestion: SearchSuggestion, options: SelectOptions, executor: Executor, callback: SearchSelectionCallback): SearchRequestTask
Content copied to clipboard
selectTileset
Link copied to clipboard