Missing train
Hi, I am using the https://api.resrobot.se/v2.1/trip endpoint and searching for all non-taxi and non-air trips between Oslo S and Copenhagen. However, one train option doesn’t show up unless I change the request and ask for only trains:
The missing trip is a combination of two train trips
- 14:14-17: 40 Oslo S - Goteborg Centralstation (Regional Tåg 391)
- 18:40-22:27 Goteborg Centralstation- Kopenhamn H (Regional Tåg 1143)
Search url that doesn’t show the specific trip:
https://api.resrobot.se/v2.1/trip?format=json&lang=sv&originId=760000100&destId=860000626&date=2025-12-10&time=14:00&products=510&operators=!838&passlist=true&showPassingPoints=true&searchForArrival=false&maxChange=11
Search url that shows the specific trip:
https://api.resrobot.se/v2.1/trip?format=json&lang=sv&originId=760000100&destId=860000626&date=2025-12-10&time=14:00&products=22&operators=!838&passlist=true&showPassingPoints=true&searchForArrival=false&maxChange=11
Why does the trip only show when we ask for only train trips?
The missing trip is a combination of two train trips
- 14:14-17: 40 Oslo S - Goteborg Centralstation (Regional Tåg 391)
- 18:40-22:27 Goteborg Centralstation- Kopenhamn H (Regional Tåg 1143)
Search url that doesn’t show the specific trip:
https://api.resrobot.se/v2.1/trip?format=json&lang=sv&originId=760000100&destId=860000626&date=2025-12-10&time=14:00&products=510&operators=!838&passlist=true&showPassingPoints=true&searchForArrival=false&maxChange=11
Search url that shows the specific trip:
https://api.resrobot.se/v2.1/trip?format=json&lang=sv&originId=760000100&destId=860000626&date=2025-12-10&time=14:00&products=22&operators=!838&passlist=true&showPassingPoints=true&searchForArrival=false&maxChange=11
Why does the trip only show when we ask for only train trips?
Följ inlägget
1
följare
In the first request, the first trip is a better alternative since it departs one minute later and arrives at the same time.
14:45 - 18:15 Oslo S - Goteborg Centralstation (Vy Bus4You)
18:40 - 22:27 Goteborg Centralstation- Kopenhamn H (Regional Tåg 1143)
The route planner only returns the best trips, with (in certain cases) some additional results to ensure enough alternatives are shown.
Regards,
Bert