RouteWaypointsState
public struct RouteWaypointsState
Keeps the state of the waypoints in the current route, providing methods to change the state (as necessary).
Important
This is a Public Preview API. It may be changed or removed at any time.-
Keeps previously visited waypoints while following the route.
Declaration
Swift
public internal(set) var arrivalHistory: [WaypointArrivalStatus] { get }
-
Indicates the current waypoint arrival state.
Declaration
Swift
public var waypointState: WaypointArrivalState? { get }
-
The next unvisited waypoint on the route. It becomes nil if there are no waypoints in the route, or if all waypoints are already visited.
Declaration
Swift
public var nextWaypoint: RouteStop? { get }