Skip to content

feat: Add initial route planner support - #1098

Draft
MoritzWeber0 wants to merge 14 commits into
mainfrom
feat/automatic-routing
Draft

feat: Add initial route planner support#1098
MoritzWeber0 wants to merge 14 commits into
mainfrom
feat/automatic-routing

Conversation

@MoritzWeber0

Copy link
Copy Markdown
Member

Initial version of the route planner, mainly vibe-coded, but it's here to share the idea and find issues.

So far it mainly works for Eurostar + DB + Renfe AVE trains. Cross-border points are a challenge, not sure how to tackle them.

@github-actions

Copy link
Copy Markdown

Hi there! 👋

Thank you for your contribution to the FIP Guide! 🚀
We appreciate your effort in making rail staff travel information more accessible. 🚄

Checklist before merging:

  • Added a description to the Pull Request
  • Checked the License of new pictures (non-commercial use without attribution)
  • Modified content in English
  • Modified content in German
  • Modified content in French

@netlify

netlify Bot commented Jul 23, 2026

Copy link
Copy Markdown

Deploy Preview for fipguide ready!

Name Link
🔨 Latest commit 5742be8
🔍 Latest deploy log https://app.netlify.com/projects/fipguide/deploys/6a707a1fe13d5100084920bf
😎 Deploy Preview https://deploy-preview-1098--fipguide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

…experimental message

- Extract transitous_mapping from operator frontmatter to transitous.yaml
- Extract country operators_without_fip queries to transitous.yaml
- Simplify operators_without_fip to a plain string list
- Update templates to read from resource files
- Add experimental warning message to route planner page
- Add fromName/toName/fromStopId/toStopId to query evaluation context
- Detect Liège–Maastricht section (FIP accepted)
- Detect Maastricht–Aachen section (FIP not accepted)
- Fallback for mixed legs (FIP partially accepted)
- Match both Arriva (Sneltrein RE18) and DB Regio (de-DELFI_de:nrw:re18) variants
- Pre-resolve countries for all legs before rendering
- Add fromCountry/toCountry to evalQuery for country-based matching
- Add NS International ICE as FIP accepted on DB page for domestic journeys
- Set reservation_required false for national ICE trains
@lenderom

lenderom commented Aug 3, 2026

Copy link
Copy Markdown
Member

Mega gut :D
Gibt es zufällig die Möglichkeit die Reservierungspflicht aus den Metadaten auszulesen? Z.B. bei den Grenzüberschreitenden ICEs?

@MoritzWeber0

MoritzWeber0 commented Aug 3, 2026

Copy link
Copy Markdown
Member Author

Mega gut :D Gibt es zufällig die Möglichkeit die Reservierungspflicht aus den Metadaten auszulesen? Z.B. bei den Grenzüberschreitenden ICEs?

Soweit ich weiß, steht das leider nicht in den GTFS Daten :(
Deshalb müssen wir das wohl manuell anhand der Zeiten nachpflegen oder auf reservation partially required setzen.

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.

2 participants