You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'}.
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.
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
The text was updated successfully, but these errors were encountered: