MapMatchingEngine
public protocol MapMatchingEngine : ManageableEngine
The MapMatchingEngine provides an interface for map matching functionality.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Function that provides a map matched position.
Throws
MapMatchingEngineError
if the map matcher cannot match the location.Declaration
Swift
func matchLocation(navigationSnapshot: NavigationSnapshot) throws -> MapMatchingResult
Parameters
navigationSnapshot
The snapshot of the current navigation session.
Return Value
A result with the matched location and it’s details
-
Function that attempts to extrapolate locations based on the previous position.
Throws
MapMatchingEngineError
if the map matched location can’t be extrapolated from the current location.Declaration
Swift
func extrapolateLocation(navigationSnapshot: NavigationSnapshot) throws -> MapMatchingResult
Parameters
navigationSnapshot
The snapshot of the current navigation session.
Return Value
MapMatchingResult
containing a map matched location.