addItineraryPoint

@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
fun RoutePlanningOptions.addItineraryPoint(itineraryPoint: ItineraryPoint): RoutePlanningOptions

Adds the given itineraryPoint to the Itinerary. It is added as the last waypoint in the Itinerary.waypoints list.

Note: This operation removes RoutePlanningOptions.routeLegOptions if route is EV. If not, RouteLegOptions is added to the end of the list, without RouteLegOptions.supportingPoints, and with a RouteLegOptions.routeType matching the last RoutePlanningOptions.routeLegOptions.

Return

Copy of target RoutePlanningOptions with the provided itineraryPoint added to the Itinerary.

Parameters

itineraryPoint

Throws


@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
fun RoutePlanningOptions.addItineraryPoint(itineraryPoint: ItineraryPoint, itineraryPointBefore: ItineraryPoint): RoutePlanningOptions

Adds the given itineraryPoint to the Itinerary.

If itineraryPointBefore is:

Note: This operation removes RoutePlanningOptions.routeLegOptions if route is EV. If not, RouteLegOptions is added after the leg that corresponds to itineraryPointBefore, without RouteLegOptions.supportingPoints, and with a RouteLegOptions.routeType matching the last RoutePlanningOptions.routeLegOptions.

Return

Copy of target RoutePlanningOptions with the provided itineraryPoint added to the Itinerary.

Parameters

itineraryPoint
itineraryPointBefore

Throws