BackToRouteOptions
public struct BackToRouteOptions
Options for planning back to route.
BackToRouteOptions encapsulates all the necessary data and options required for replanning a route in navigation scenarios.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializes a new instance of
BackToRouteOptions.Declaration
Swift
public init( location: GeoLocation, route: Route, routeOptions: RoutePlanningOptions, currentDistanceAlongRoute: Measurement<UnitLength>, numberOfVisitedWaypoints: Int )Parameters
locationThe current location.
routeThe current route.
routeOptionsThe options for planning the route.
currentDistanceAlongRouteThe current distance traveled along the route.
numberOfVisitedWaypointsThe number of waypoints visited so far.
-
The current location.
Declaration
Swift
public private(set) var currentLocation: GeoLocation { get } -
The current route.
Declaration
Swift
public private(set) var currentRoute: Route { get } -
The options for planning the route.
Declaration
Swift
public private(set) var currentRouteOptions: RoutePlanningOptions { get } -
The current distance traveled along the route.
Declaration
Swift
public private(set) var currentDistanceAlongRoute: Measurement<UnitLength> { get } -
The number of waypoints visited so far.
Declaration
Swift
public private(set) var numberOfVisitedWaypoints: Int { get }
TomTom SDK for iOS (0.71.1)
BackToRouteOptions