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 -> BoolParameters
locationCurrent location of the driver.
onRouteCurrent route.
withProgressThe driver’s progress along the current route.
-
Clears the data used by the engine.
Declaration
Swift
public func reset()
NavKitDeviationEngine Class Reference