Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Train Compositions (Germany and Belgium) #317

Open
thatjade opened this issue Jul 1, 2024 · 2 comments
Open

Train Compositions (Germany and Belgium) #317

thatjade opened this issue Jul 1, 2024 · 2 comments
Labels

Comments

@thatjade
Copy link

thatjade commented Jul 1, 2024

Train Compositon data for Germany is publicly accessible as seen on sites such as bahn.expert or dbf.finalrewind.org
Train Composition data for Belgium can be found via iRail https://docs.irail.be/

This can be very usefull to determinate where your coach is located and also helps unclogging the mess on platforms.

@derhuerst
Copy link
Member

Hey, thanks for proposing this feature.

This project is a client for HAFAS "mgate-style" APIs, with a WIP implementation for "rest-style" APIs. Can such train composition data be obtain from HAFAS?

@121593
Copy link

121593 commented Dec 1, 2024

Mgate supports two request parameters that are related : getSimpleTrainComposition and getTrainComposition. I don't know about support for this parameter by the different versions and profiles, but it apparently provide data in this form

The aforementioned repository contains clients for mgate.exe and rest.exe endpoints, it might be a helpful source to move forward with #134 .

AFAIK bahn.expert doesn't use HAFAS to get the composition but either the "ris-transports" one, or one on "bahn.de/web/api/reisebegleitung/..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants