RouteTrackingState

public struct RouteTrackingState

Represents the currently followed and unfollowed routes in the current navigation session.

  • The list of TomTomSDKRoute/Route that are currently being followed within the TomTomSDKNavigation/NavigationSession.

    Declaration

    Swift

    public let followedRoutes: [Route]
  • If the user does not follow any of the routes in the navigation session, it means that the user has deviated. True if the user has deviated from all of the routes, false otherwise.

    Declaration

    Swift

    public var hasDeviated: Bool { get }
  • Creates an instance of the route tracking state for followed and unfollowed routes.

    Declaration

    Swift

    public init(followedRoutes: [Route], unfollowedRoutes: [UnfollowedRoute])
  • The list of TomTomSDKNavigationEngines/UnfollowedRoute that are not being followed, but are still relevant to the navigation session. Unfollowing the route means that the user has deviated from it.

    Declaration

    Swift

    public let unfollowedRoutes: [UnfollowedRoute]