TomTomMapMatchingEngine

class TomTomMapMatchingEngine : MapMatchingEngine

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())

Functions

Link copied to clipboard
open override fun dispose()
Link copied to clipboard
open override fun extrapolateLocation(lastMatchedLocation: MatchedLocation, timeFromLastMatchedLocation: Duration): MapMatchingResult?

This engine does not support location extrapolation.

open override fun extrapolateLocation(    lastMatchedLocation: MatchedLocation,     route: Route,     timeFromLastMatchedLocation: Duration): MapMatchingResult?

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

Matches given location to road based on the map data.

open override fun matchLocation(location: GeoLocation, route: Route): MapMatchingResult

Matches given location to provided Route geometry based on the map data.