Itinerary

fun Itinerary(origin: GeoPoint, destination: GeoPoint, waypoints: List<GeoPoint> = emptyList(), heading: Angle? = null)

Itinerary represents a sequence of points that a route visits.

Parameters

origin

The GeoPoint of the origin.

destination

The GeoPoint of the destination.

waypoints

List of GeoPoint 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.