removeItineraryPoint

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

Removes the given itineraryPoint from the Itinerary.

Note: This operation removes RoutePlanningOptions.routeLegOptions if route is EV. If not, the two RouteLegOptions around the routeStop merge into one, without RouteLegOptions.supportingPoints, and with a RouteLegOptions.routeType matching the RouteLegOptions following the routeStop.

Return

Copy of target RoutePlanningOptions with the provided itineraryPoint removed from the Itinerary.

Parameters

itineraryPoint

ItineraryPoint to remove.

Throws