ItineraryPoint
public struct ItineraryPoint
Represents a stop on the route (origin, destination or waypoint).
-
Creates an instance of
ItineraryPoint, given a coordinate and address of a place.Note
See
Placefor more details on location parameters.Declaration
Swift
public init( coordinate: CLLocationCoordinate2D, name: String? = nil, address: Address? = nil, heading: Measurement<UnitAngle>? = nil )Parameters
coordinateThe coordinate of the itinerary point.
nameThe name of the place of the itinerary point.
addressThe
Addressinformation about the place of the itinerary point.headingThe direction in which we want to arrive and depart at this point, measured clockwise from North.
-
Creates an instance of
ItineraryPoint, given aPlaceobject.Note
See
Placefor more details on location parameters.Throws
A
RoutingError.badInputif the pauseTime is negative.Important
This is a Public Preview API. It may be changed or removed at any time.
Declaration
Swift
public init( place: Place, heading: Measurement<UnitAngle>? = nil, pauseTime: Measurement<UnitDuration> = .tt.seconds(0) ) throwsParameters
placeA
Placewhich represents ItineraryPoint.headingThe direction in which we want to arrive and depart at this point, measured clockwise from North.
pauseTimePause time at this itinerary point (including charging time).
-
A unique identifier of the itinerary point.
Declaration
Swift
public let id: UUID -
The direction in which we want to arrive and depart at this point, measured clockwise from North.
Declaration
Swift
public var heading: Measurement<UnitAngle>? -
Pause time at this itinerary point (including charging time).
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var pauseTime: Measurement<UnitDuration>
TomTom SDK for iOS (0.53.1)
ItineraryPoint