addItineraryPoint
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.
Important: This is a Public Preview API. It may be changed or removed at any time.
Return
Copy of target RoutePlanningOptions with the provided itineraryPoint added to the Itinerary.
Parameters
ItineraryPoint to add.
Throws
if ItineraryPoint with the same ItineraryPoint.id as given itineraryPoint is part of the Itinerary.
Adds the given itineraryPoint to the Itinerary.
If itineraryPointBefore is:
Itinerary.origin, then itineraryPoint becomes the first waypoint in the Itinerary.waypoints list.
In the Itinerary.waypoints list, then itineraryPoint is added to the list of Itinerary.waypoints immediately after itineraryPointBefore.
Itinerary.destination, then itineraryPoint becomes the new Itinerary.destination and itineraryPointBefore becomes the last waypoint in the Itinerary.waypoints list.
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.
Important: This is a Public Preview API. It may be changed or removed at any time.
Return
Copy of target RoutePlanningOptions with the provided itineraryPoint added to the Itinerary.
Parameters
ItineraryPoint to add.
ItineraryPoint before.
Throws
if ItineraryPoint with the same ItineraryPoint.id as given itineraryPointBefore is not part of the Itinerary.