DefaultMapMatchingEngine
public class DefaultMapMatchingEngine : MapMatchingEngine
The DefaultMapMatchingEngine provides map matching using the NavKit SDK.
Important
This is a Public Preview API. It may be changed or removed at any time.-
A function that uses NavKit algorithms to match a position against the Tomtom road network.
- navigationSnapshot: The snapshot of the current navigation session.
Declaration
Swift
public func matchLocation(navigationSnapshot: NavigationSnapshot) throws -> MapMatchingResult
Return Value
A result with the matched location and its details
-
This engine does not support extrapolation. It always returns nil.
- navigationSnapshot: The snapshot of the current navigation session.
Declaration
Swift
public func extrapolateLocation(navigationSnapshot: NavigationSnapshot) throws -> MapMatchingResult?
-
Declaration
Swift
public func reset()