sdk / com.mapbox.search / ServiceProvider

ServiceProvider

interface ServiceProvider

This class provides access to search-related services and utility classes.

Functions

distanceCalculator

Provides entity to calculate distances between geographical points.

abstract fun distanceCalculator(latitude: Double): DistanceCalculator

favoritesDataProvider

Provides entity to work with com.mapbox.search.record.FavoriteRecord.

abstract fun favoritesDataProvider(): FavoritesDataProvider

highlightsCalculator

Provides entity to calculate highlights ranges in search results.

abstract fun highlightsCalculator(): HighlightsCalculator

historyDataProvider

Provides entity to work with com.mapbox.search.record.HistoryRecord.

abstract fun historyDataProvider(): HistoryDataProvider

locationProvider

Provides entity to get current user location.

abstract fun locationProvider(): LocationProvider