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.-
Initializes the route tracking state for followed and unfollowed routes.
Declaration
Swift
public init(followedRoutes: [Route], unfollowedRoutes: [UnfollowedRoute])
-
Represents the
RouteTrackingStateof all the routes that are currently followed within theNavigationSession.Declaration
Swift
public let followedRoutes: [Route] -
Represents the
RouteTrackingStateof all the routes that are not currently followed (unfollowed) within theNavigationSession.Declaration
Swift
public let unfollowedRoutes: [UnfollowedRoute]
-
If there are no followed routes then the driver is deemed to have deviated.
Declaration
Swift
public var hasDeviated: Bool { get }
RouteTrackingState Structure Reference