RouteUpdateOptions
public struct RouteUpdateOptions
Options for updating a route.
RouteUpdateOptions encapsulates all the necessary data and options required for updating 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
RouteUpdateOptions.Declaration
Swift
public init( location: GeoLocation, route: Route, routeOptions: RoutePlanningOptions, distanceAlongRoute: Measurement<UnitLength>, remainingTime: Measurement<UnitDuration>, numberOfVisitedWaypoints: Int )Parameters
locationThe current location of the user.
routeThe current route being followed.
routeOptionsThe options used for planning the current route.
distanceAlongRouteThe distance traveled along the route.
remainingTimeThe remaining time to reach the destination.
numberOfVisitedWaypointsThe number of waypoints visited so far.
-
The current location of the user.
Declaration
Swift
public private(set) var currentLocation: GeoLocation { get } -
The current route being followed.
Declaration
Swift
public private(set) var currentRoute: Route { get } -
The options used for planning the current route.
Declaration
Swift
public private(set) var currentRouteOptions: RoutePlanningOptions { get } -
The distance traveled along the route.
Declaration
Swift
public private(set) var distanceAlongRoute: Measurement<UnitLength> { get } -
The remaining time to reach the destination.
Declaration
Swift
public private(set) var remainingTime: Measurement<UnitDuration> { get } -
The number of waypoints visited so far.
Declaration
Swift
public private(set) var numberOfVisitedWaypoints: Int { get }
TomTom SDK for iOS (0.71.1)
RouteUpdateOptions