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.
Declaration
Swift
public func matchLocation(location: GeoLocation, route _: Route?, progress: RouteProgress?) throws -> MapMatchingResultParameters
locationThe raw location to be matched against the road network.
routeThe
Routeto help with matching.progressThe current progress on the route.
Return Value
MapMatchingResultcontaining the map matched location. -
This engine does not support extrapolation. It always returns nil.
Declaration
Swift
public func extrapolateLocation( lastMatchedLocation: GeoLocation, route: Route?, progress: RouteProgress?, timeFromLastMatchedLocation: Measurement<UnitDuration> ) throws -> MapMatchingResult? -
Declaration
Swift
public func reset()
DefaultMapMatchingEngine Class Reference