SimulatedLocationManager

open class SimulatedLocationManager : NavigationLocationManager

The SimulatedLocationManager class simulates location updates along a given route.

The route will be replaced upon a RouteControllerDidReroute notification.

The manager calls delegate methods on a background thread.

  • Initializes a new SimulatedLocationManager with the given route.

    Declaration

    Swift

    public convenience init(route: Route)

    Parameters

    route

    The initial route.

    Return Value

    A SimulatedLocationManager

  • Initializes a new SimulatedLocationManager with the given routeProgress.

    Declaration

    Swift

    public required convenience init(routeProgress: RouteProgress)

    Parameters

    routeProgress

    The routeProgress of the current route.

    Return Value

    A SimulatedLocationManager

  • Initializes a new SimulatedLocationManager

    Declaration

    Swift

    public required init(route: Route, currentDistance: CLLocationDistance, currentSpeed: CLLocationSpeed)

    Parameters

    route

    The initial route.

    currentDistance

    The current distance in meters traveled along all legs.

    currentSpeed

    The current speed at which the device is moving in meters/second

    Return Value

    A SimulatedLocationManager