RouteProtocol
@available(*, message: "TT_API_PUBLIC_PREVIEW('byTheEndOf=2020.12', 'This is under Public Preview and subject to change until the end date. More information is available at: https://developer.tomtom.com/public-preview'﹚")
@objc
public protocol RouteProtocol
Public Preview
This is under Public Preview and subject to change by the end of 2020.12.
More information is available at: https://developer.tomtom.com/public-preview
Represents parameters of the route for route planning.
-
Specifies the departure time.
Declaration
Swift
@objc optional var departAt: Date { get set } -
Specifies the type of route requested.
Declaration
Swift
@objc var routeType: RouteType { get set } -
Specifies whether the traffic information will be considered.
Declaration
Swift
@objc var considerTraffic: Bool { get set } -
Specifies something that the route calculation should try to avoid when determining the route.
Declaration
Swift
@objc var avoidTypes: [AvoidType] { get set } -
Specifies the mode of travel for the requested route.
Declaration
Swift
@objc var travelMode: TravelMode { get set }
RouteProtocol Protocol Reference