MapboxSearchSdk

object MapboxSearchSdk

The entry point to initialize Search SDK.

Functions

addDataProviderInitializationCallback
Link copied to clipboard
Experimental API, can be changed or removed in the next SDK releases.
getCategorySearchEngine
Link copied to clipboard
fun getCategorySearchEngine(): CategorySearchEngine
Get CategorySearchEngine instance to search by category.
getOfflineSearchEngine
Link copied to clipboard
fun getOfflineSearchEngine(): OfflineSearchEngine
Gets existing instance of the OfflineSearchEngine.
getReverseGeocodingSearchEngine
Link copied to clipboard
Get ReverseGeocodingSearchEngine instance for reverse geocoding.
getSearchEngine
Link copied to clipboard
fun getSearchEngine(): SearchEngine
Get SearchEngine instance for forward geocoding.
initialize
Link copied to clipboard
fun initialize(application: Application, accessToken: String, locationEngine: LocationEngine = LocationEngineProvider.getBestLocationEngine(application), viewportProvider: ViewportProvider? = null, searchSdkSettings: SearchSdkSettings = SearchSdkSettings(), offlineSearchSettings: OfflineSearchSettings = OfflineSearchSettings())
Experimental API, can be changed or removed in the next SDK releases.
Experimental API, can be changed or removed in the next SDK releases.
setAccessToken
Link copied to clipboard
fun setAccessToken(accessToken: String)
Change current SDK access token in runtime.

Properties

LAYER_PRIORITY_FAVORITES
Link copied to clipboard
const val LAYER_PRIORITY_FAVORITES: Int = 101
Default FavoritesDataProvider priority.
LAYER_PRIORITY_HISTORY
Link copied to clipboard
const val LAYER_PRIORITY_HISTORY: Int = 100
Default HistoryDataProvider priority.
serviceProvider
Link copied to clipboard
val serviceProvider: ServiceProvider
Shared ServiceProvider instance.