NavKitDeviationEngine
public class NavKitDeviationEngine : RouteDeviationEngine
The NavKitDeviationEngine uses the NavKit road network to determine if the driver has deviated from the route.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Checks if the driver has deviated from the current route.
Declaration
Swift
public func isLocationDeviated( location _: CLLocation, onRoute _: Route, withProgress _: RouteProgress ) throws -> Bool
Parameters
location
Current location of the driver.
onRoute
Current route.
withProgress
The driver’s progress along the current route.
-
Clears the data used by the engine.
Declaration
Swift
public func reset()