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
        -> Bool

    Parameters

    location

    Current location of the driver.

    onRoute

    Current route.

    withProgress

    The driver’s progress on the current route.