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 -> MapMatchingResult
Parameters
location
The raw location to be matched against the road network.
route
The
Route
to help with matching.progress
The current progress on the route.
Return Value
MapMatchingResult
containing 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()