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) -> ()) -> Itinerary
Parameters
build
This closure allows for change of Itinerary values
Return Value
Itinerary with the changes set on the closure
-
The
Builder
creates a new instance ofItinerary
with modified fields.Declaration
Swift
public struct Builder