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.
- location: Raw location to be matched against the road network.
- route: (Optional) route to help with matching.
Declaration
Swift
public func matchLocation(location: GeoLocation, route _: Route?) throws -> MapMatchingResult
-
This engine does not support extrapolation. It will return nil when called.
Declaration
Swift
public func extrapolateLocation( lastMatchedLocation: GeoLocation, route: Route?, timeFromLastMatchedLocation: Measurement<UnitDuration> ) throws -> MapMatchingResult?
-
Declaration
Swift
public func reset()