Skip to content

Give each operator its own Interrail booking site and reservation rules - #8

Merged
davd-gzl merged 1 commit into
mainfrom
pass-info
Oct 5, 2026
Merged

davd-gzl merged 1 commit into
mainfrom
pass-info

Conversation

@davd-gzl

@davd-gzl davd-gzl commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Before: index.json sent Interrail holders to SNCF Connect for all nine operators. It also said every train needs a paid pass-holder reservation, which is wrong for ICE within Germany, Dutch domestic trains, most Swiss trains, Irish Rail and others.

After: each operator's Interrail entry links to that operator's own booking site, for example int.bahn.de, ns.nl, trenitalia.com or vy.no. Its note says which of its trains need a reservation, for example "ICE, IC and EC trains within Germany need no reservation" or "Frecciarossa… need a paid pass-holder reservation. Regionale… don't". An operator without its own entry falls back to Interrail's reservations page and a general note. Sweden and Great Britain already have entries for when their feeds go live.

How: the new src/operators/interrail.ts holds the booking site and note per operator. buildOperatorApi lays them over the general Interrail info. The notes are written from the operators' published pass rules, so a quick check before sharing them widely is worthwhile.

Checked: npm run check (27 tests, including the per-operator link, its note and the fallback) and the fixture build's index.json.


Generated by Claude Code

The index sent Interrail holders to SNCF Connect for every operator and said
every train needs a paid reservation, which is wrong for ICE within Germany,
Dutch domestic trains, Swiss and Irish trains and more. Each operator's
index entry now carries its own booking site and a note on which of its
trains need a reservation; an operator without one falls back to general
rules pointing at Interrail's reservations page.
@davd-gzl
davd-gzl merged commit 864ee90 into main Oct 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant