departFromWaypoint

abstract fun departFromWaypoint(waypoint: RouteStop)

Marks a departure from the given waypoint independently from ArrivalDetectionEngine.hasArrivedAtWaypoint.

The specified waypoint is marked as having been departed from and waypoint arrival listeners are notified about this via WaypointArrivalListener.onWaypointDeparted. Notification via WaypointArrivalListener.onWaypointDeparted completes arrival detection for that particular waypoint. Navigation switches to arrival detection for the next waypoint if there is one present.

Parameters

waypoint

The waypoint to depart from.

Throws

if a specified waypoint has not been arrived at.

Note that there will be no effect if a specified waypoint has already been departed from.