RouteDeviationEngine
public protocol RouteDeviationEngine : ManagableEngine
The RouteDeviationEngine protocol provides functionality 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
func isLocationDeviated(location: CLLocation, onRoute route: Route, withProgress progress: RouteProgress) throws -> BoolParameters
locationCurrent location of the driver.
onRouteCurrent route.
withProgressThe driver’s progress on the current route.
RouteDeviationEngine Protocol Reference