create

fun create(navigation: TomTomNavigation, usePredictions: Boolean = true): LocationProvider

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

Parameters

navigation

The TomTomNavigation instance.

usePredictions

If set to true, the provider includes matched locations from the MapMatchingResult.locationPredictions, otherwise the MapMatchingResult.matchedLocation is used. Set to true by default.