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

Adding international trains #501

Open
koeleboe opened this issue Nov 5, 2023 · 3 comments
Open

Adding international trains #501

koeleboe opened this issue Nov 5, 2023 · 3 comments

Comments

@koeleboe
Copy link

koeleboe commented Nov 5, 2023

As already described in another issue, vehicle data is not available for international traffic. However:

By checking the liveboard, you can see the international trains. From that, you can find the starting and ending point of the international train (for example: EUR9364 to Paris Nord.

As far as I know, these international trains are not available in the GTFS file, but you can "guess" where the train is coming from, as international trains do have specific arrival/departure points (Brussels South - Amsterdam Central - Paris Nord - Dusseldorf Hbf etc).

Based on this information you can get the vehicle data, which gives us a 'JourneyDetailRef': {'ref': '1|12456|0|80|5112023'}.

https://mobile-riv.api.belgianrail.be/riv/v1.0/journey?trainFilter=EUR9364&originExtId=8814001&destExtId=8727100

This can then be used for further purposes (finding the intermediate stops etc):

https://mobile-riv.api.belgianrail.be/riv/v1.0/journey/detail?id=1%7C12456%7C0%7C80%7C5112023&lang=nl

@Bertware
Copy link
Member

Bertware commented Nov 6, 2023

Another (possibly more robust) way of implementing this would be obtaining data directly from SNCF (TGV/Ouigo), DB (ICE) and Eurostar (Thalys/Eurostar), then querying that exact path. On the other hand, that would add another three API dependencies which can break.

@koeleboe
Copy link
Author

koeleboe commented Nov 7, 2023

As for Eurostar, there is one GTFS file, that normally doesn't change a lot according to the website. I however have had no time to check further.
https://transport.data.gouv.fr/resources/80396#validation-report

@jncn
Copy link
Contributor

jncn commented Dec 18, 2023

I would * love * to have/restore this kind of info.

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

No branches or pull requests

3 participants