RouteWaypointsState

public struct RouteWaypointsState

Keeps state of currently followed route’s waypoints, provide methods to change this state.

Important

This is a Public Preview API. It may be changed or removed at any time.

Public

  • Next not visited waypoint, where the route is following now. It becomes nil if it is no waypoints in the route, or if all waypoints of the route are already visited.

    Declaration

    Swift

    public internal(set) var nextWaypoint: Waypoint? { get }
  • Keeps number of already visited waypoints during following the route.

    Declaration

    Swift

    public internal(set) var numberOfVisitedWaypoints: Int { get }