Itinerary
fun Itinerary(origin: GeoCoordinate, destination: GeoCoordinate, waypoints: List<GeoCoordinate> = emptyList(), heading: Angle? = null)
Itinerary represents a sequence of points that a route visits.
Important: This is a Public Preview API. It may be changed or removed at any time.
Parameters
origin
The GeoCoordinate of the origin.
destination
The GeoCoordinate of the destination.
waypoints
List of GeoCoordinate representing waypoints.
heading
Angle at which the origin point should be departed from, counted from north in clockwise direction and in range [0, 360).
fun Itinerary(origin: ItineraryPoint, destination: ItineraryPoint, waypoints: List<ItineraryPoint> = emptyList())
Parameters
origin
The ItineraryPoint of the origin.
destination
The ItineraryPoint of the destination.
waypoints
Ordered collection of intermediate ItineraryPoints.