RoutePlan
public struct RoutePlan
Route plan defines parameters required for a single route in navigation session.
To specify a route plan, first plan a TomTomSDKRoute/Route
using
TomTomSDKRoutePlanner/RoutePlanner
and TomTomSDKRoutePlanner/RoutePlanningOptions
.
For more information on navigation session see start()
, TomTomNavigation/start(_:)
,
TomTomNavigation/update(_:)
and stop()
.
-
Creates an instance of
RoutePlan
.Declaration
Swift
public init(route: Route, routePlanningOptions: RoutePlanningOptions)
Parameters
route
Route
to follow during the navigation session.routePlanningOptions
RoutePlanningOptions
used to plan theroute
.
-
RoutePlanningOptions
used to plan theroute
.Declaration
Swift
public let routePlanningOptions: RoutePlanningOptions