MapMatchedLocationProvider

class MapMatchedLocationProvider(navigation: NavigationController, usePredictions: Boolean = true) : LocationProvider

Location provider that provides map matched locations generated by NavigationController. Clients should call addOnLocationUpdateListener to register for location updates.

If usePredictions will be set to true it will provide matched locations generated by NavigationController.addOnLocationPredictionsGeneratedListener otherwise NavigationController.addOnLocationMatchedListener will be used. Locations that comes from predictions are generated more often and attempt to provide closer approximation of user's location. Location updates from predictions will be executed before given GeoLocation.time to let client e.g. execute animation beforehand.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
fun MapMatchedLocationProvider(navigation: NavigationController, usePredictions: Boolean = true)

Functions

Link copied to clipboard
Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun disable()
Link copied to clipboard
open override fun enable()
Link copied to clipboard

Properties

Link copied to clipboard
open override val lastKnownLocation: GeoLocation?