Itinerary

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

The Itinerary represents a sequence of points that a route visits.

Parameters

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).

Throws

if an invalid combination of options is used. Invalid combinations are:

  • having origin.pauseTime or destination.pauseTime set to something other than Duration.ZERO

  • having origin.waypointType or destination.waypointType set

  • having ItineraryPoint.personalChargingCapability set to PersonalChargingCapability.HomeCharger for any itinerary points other than destination


constructor(origin: ItineraryPoint, destination: ItineraryPoint, waypoints: List<ItineraryPoint> = emptyList())