Itinerary
public struct Itinerary
Represents a requested sequence of points that a route should visit.
-
Initializes the
Itinerary
Declaration
Swift
public init(origin: ItineraryPoint, destination: ItineraryPoint, waypoints: [ItineraryPoint] = [])
Parameters
origin
ItineraryPoint
representing the point of origindestination
ItineraryPoint
representing the destination pointwaypoints
Array of
ItineraryPoint
s representing the points that should be visited along theRoute
-
The
ItineraryPoint
of originDeclaration
Swift
public var origin: ItineraryPoint
-
The
ItineraryPoint
of destinationDeclaration
Swift
public var destination: ItineraryPoint
-
Waypoints of the route, which are represented by an array of
ItineraryPoint
sDeclaration
Swift
public var waypoints: [ItineraryPoint]