Skip to content

Commit 62ffc7c

Browse files
saraswatayuclaude
andcommitted
docs: trim README booking OTA note to a pointer
The full 'when do OTAs appear' explanation already lives in the example docstring and booking proto notes; the README only needs to orient and link out. Drops the second code snippet and the premium-vs-international paragraph. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 5bb87ba commit 62ffc7c

1 file changed

Lines changed: 6 additions & 17 deletions

File tree

README.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -259,23 +259,12 @@ for opt in options:
259259
print(f" book at: {opt.booking_url}")
260260
```
261261

262-
Each `BookingOption` is one **booking channel**, not just one fare tier. A
263-
single itinerary can be sold by the operating airline (`is_airline_direct`)
264-
and by online travel agencies — Expedia, FlightHub, CheapOair, etc. — each
265-
with its own `seller_code`, `seller_name`, and `booking_url`. Split them with:
266-
267-
```python
268-
direct = [o for o in options if o.is_airline_direct]
269-
otas = [o for o in options if not o.is_airline_direct]
270-
```
271-
272-
**Whether OTAs appear is Google's call, not swoop's.** Premium cabins and
273-
most major US carriers (AA/DL/UA/B6) come back airline-direct only — one
274-
seller across several fare brands, which is expected. International economy
275-
on foreign carriers (PR, OZ, CI, LO, …) typically returns a wall of OTAs
276-
alongside the airline. If every option shares one `seller_code`, the
277-
itinerary is airline-direct; try an international economy route on a foreign
278-
carrier to see the OTA list. See [`examples/booking_options.py`](examples/booking_options.py).
262+
Each `BookingOption` is a booking *channel*, not just a fare tier: the
263+
operating airline (`is_airline_direct`) plus any OTAs Google offers (Expedia,
264+
FlightHub, …), each with its own `seller_code` and `booking_url`. If every
265+
option shares one seller, the itinerary is airline-direct — see
266+
[`examples/booking_options.py`](examples/booking_options.py) for splitting
267+
channels and where OTAs show up.
279268

280269
### Deals discovery
281270

0 commit comments

Comments
 (0)