Repository navigation
Conversation
A new v1/sncf/interrail/fees.json gives what a pass holder pays to reserve each SNCF train, in euros, 2nd class, hand-entered from Interrail's fee pages: a stop abroad sets the international fee for its country, otherwise the axe sets the domestic one. The Interrail pass entry in index.json points to it with fees.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before: the API says every SNCF train needs an Interrail pass-holder reservation, but not what it costs.
After:
v1/sncf/interrail/fees.jsongives the pass-holder fee for every SNCF train, in euros, 2nd class. For example, a TGV INOUI inside France costs €10–20, a TGV to Germany €19, Lyria €25 and a TGV to Italy €31. The Interrail entry inindex.jsonpoints to it withfees.How
src/operators/interrail-fees.tsis hand-entered from Interrail's domestic, international and night train fee pages, checked on 2026-10-12. Nothing is scraped.sncfInterrailFeeapplies this rule, anddocs/format.mddocuments it for clients.docs/format.mdanddocs/openapi.yamldescribe the new file and thefeesfield.Checks
npm run checkpasses: typecheck and 35 tests, includingtests/fees.test.ts. It covers stop matching (Bernay is not Bern), domestic, international and Spain fees, and the published file and index pointer.Refs offware-apps/MAX-Finder#92