TomTomMapMatchingEngine
MapMatchingEngine implementation which improves the position accuracy by attempting to match it to the Route or map data.
Constructors
Link copied to clipboard
fun TomTomMapMatchingEngine(context: Context, timeProvider: SystemTimeProvider = SystemClockTimeProvider())
Content copied to clipboard
Functions
Link copied to clipboard
open override fun extrapolateLocation(lastMatchedLocation: MatchedLocation, timeFromLastMatchedLocation: Duration): MapMatchingResult?
Content copied to clipboard
This engine does not support location extrapolation.
open override fun extrapolateLocation( lastMatchedLocation: MatchedLocation, route: Route, timeFromLastMatchedLocation: Duration): MapMatchingResult?
Content copied to clipboard
Estimates what the new location would be on route based on lastMatchedLocation and timeFromLastMatchedLocation.
Link copied to clipboard
open override fun matchLocation(location: GeoLocation): MapMatchingResult
Content copied to clipboard
Matches given location to road based on the map data.
open override fun matchLocation(location: GeoLocation, route: Route): MapMatchingResult
Content copied to clipboard
Matches given location to provided Route geometry based on the map data.