Itinerary
public struct Itinerary
Represents a requested sequence of points that a route should visit.
Important
This is a Public Preview API. It may be changed or removed at any time.-
The ItineraryPoint of origin
Declaration
Swift
public let origin: ItineraryPoint -
The ItineraryPoint of destination
Declaration
Swift
public let destination: ItineraryPoint -
Waypoints of the route, which are represented by [ItineraryPoint]
Declaration
Swift
public let waypoints: [ItineraryPoint]
-
Copies the current Itinerary with changes specified in build closure
Declaration
Swift
public func copy(build: (inout Builder) -> ()) -> ItineraryParameters
buildThis closure allows for change of Itinerary values
Return Value
Itinerary with the changes set on the closure
-
The
Buildercreates a new instance ofItinerarywith modified fields.Declaration
Swift
public struct Builder
Itinerary Structure Reference