OfflineSearchEngine

interface OfflineSearchEngine

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.

Functions

addOfflineRegion
Link copied to clipboard
abstract fun addOfflineRegion(path: String, mapsFileNames: List<String>, boundaryFileName: String)
Register offline region data for search index.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
reverseGeocoding
Link copied to clipboard
abstract fun reverseGeocoding(options: OfflineReverseGeoOptions, callback: SearchCallback): SearchRequestTask
Performs reverse geocoding.
search
Link copied to clipboard
abstract fun search(query: String, options: OfflineSearchOptions, callback: SearchSuggestionsCallback): SearchRequestTask
The first step of the offline forward geocoding.
select
Link copied to clipboard
abstract fun select(suggestion: SearchSuggestion, callback: SearchSelectionCallback): SearchRequestTask
The second step of the offline forward geocoding.
toString
Link copied to clipboard
open fun toString(): String