I'm trying to migrate my commuter rail application from v2 to v3, and unfortunately find the results I get from the v3 API confusing.
In v2, I can make a single call to /predictionsbyroute and get the trains on a particular line and their predicted arrival at all the remaining stops on the route.
It seems that in v3, the recommendation for migration is /schedules, but that seems to give schedule for all trips on the route, not just the ones currently in progress.
Alternatively, calling the /predictions endpoint only seems to give partial information.
The above call, at 9:37 am, only provides predictions for the last 2 stops for trip 910. This trip is scheduled to originate at Stoughton at 10:40am, but the only predictions provided for it are arrival at Back Bay and South Station.
Is the GTFS realtime feed a better migration option than the v3 API if I want to replicate the behavior from v2? Or is there a recommendation that anyone can provide that would help me navigate one or two calls in the v3 API that would get me the same specific information that I have been getting from the v2 /predictionsbyroute endpoint?
At the end of the day, I'm looking to create a list of the active trips on a particular line at a particular time, and their predicted arrival at remain stops on that trip.
Cheers,
Carl