MapMatchedLocationProviderFactory

Factory for creating instances of an implementation of LocationProvider that relies on the TomTomNavigation map-matching mechanism. Clients should call addOnLocationUpdateListener to register for location updates. If usePredictions will be set to true it will provide map-matched locations from the MapMatchingResult.locationPredictions otherwise the MapMatchingResult.matchedLocation 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.

Functions

Link copied to clipboard
fun create(navigation: TomTomNavigation, usePredictions: Boolean = true): LocationProvider

Creates a new instance of LocationProvider that relies on the TomTomNavigation map-matching mechanism.