extrapolateLocation

abstract fun extrapolateLocation(lastMatchedLocation: MatchedLocation, timeFromLastMatchedLocation: Duration): MapMatchingResult?

Performs attempt to extrapolate location based on previous position.

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

Return

Map matching result if possible, otherwise returns null. Result consists of:

  • A location matched to the Route if possible, otherwise returns original location.

  • A list of Route IDs that matched location is on.

Parameters

lastMatchedLocation

last matched location being the result of calling either MapMatchingEngine.matchLocation or MapMatchingEngine.extrapolateLocation methods.

timeFromLastMatchedLocation

Time difference from lastMatchedLocation timestamp until now.


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

Estimates what the new location would be on route based on lastMatchedLocation and timeFromLastMatchedLocation.

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

Return

Map matching result if possible, otherwise returns null. Result consists of:

  • A location matched to the Route if possible, otherwise the original location.

  • A list of IDs for Routes that the matched location is on.

Parameters

lastMatchedLocation

Last matched location being the result of calling either matchLocation or extrapolateLocation methods.

timeFromLastMatchedLocation

Time difference from lastMatchedLocation timestamp till now.