Add Transport Option
add_transport_optionAdd one travel-to-destination option (flight, train, bus, ferry, or car) per itinerary candidate so users can compare cost and travel time; set roundTrip if the price covers the return leg.
Instructions
Propose a way of travelling TO a destination — flight, train, bus, ferry, car. One option per candidate itinerary; add several so the user can compare price against travel time. Set roundTrip when the price covers the return leg too. For moving around once there, use add_getting_around_option instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The transport option to propose. | |
| tripId | Yes | Id of the trip, as returned by list_trips or get_trip. | |
| variantId | Yes | Id of the trip variant (an alternative version of the trip), from get_trip. | |
| destinationKey | Yes | Key of the destination inside the variant, from get_trip (e.g. "destination-1"). |