RouteTrackingState

public struct RouteTrackingState

Represents the tracking states for followed and unfollowed routes within the NavigationSession.

Important

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

Lifecycle

Public

  • Represents the RouteTrackingState of all the routes that are currently followed within the NavigationSession.

    Declaration

    Swift

    public let followedRoutes: [Route]
  • Represents the RouteTrackingState of all the routes that are not currently followed (unfollowed) within the NavigationSession.

    Declaration

    Swift

    public let unfollowedRoutes: [UnfollowedRoute]

UnfollowedRoute

  • If there are no followed routes then the driver is deemed to have deviated.

    Declaration

    Swift

    public var hasDeviated: Bool { get }