RouteTrackingEngine
public protocol RouteTrackingEngine : ManageableEngine
Responsible for detecting whether the Routes are being followed or deviated from.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Determines the
RouteTrackingStateof the trackedRoute.Throws
The method can throw different types of errors:RouteTrackingEngineErrorif trip snapshot is missing in navigation snapshot.DistanceAlongRouteCalculatorErrorif calculation fails.NavigationProcessingErrorif route is missing in navigation snapshot.Declaration
Swift
func obtainTrackingStates(navigationSnapshot: NavigationSnapshot) throws -> RouteTrackingStateParameters
navigationSnapshotThe
NavigationSnapshotused to determine if theRouteis currently followed or deviated from.Return Value
A
RouteTrackingStateobject for tracked routes.
TomTom SDK for iOS (0.53.1)
RouteTrackingEngine