I think I figured out my issue. The call to /schedules works just fine, but I was testing with inactive trips, so there was no schedule data.
Perhaps I should have started with my current goal, in case there is a RTFM example out there. I'm trying to construct a table of stations and times, much like the Fitchburg timetable
. As I wrote that sentence, I realized there is probably a solution somewhere in dotcom
[more details on my learning, you can probably skip the rest of this message]
I think my empty data
problem was my lack of understanding. I was mostly focused on the Fitchburg Commuter Rail line. I think my test trip of CR-525671-427
is inactive, and CR-525671-427-LeoWachuEarly returns nice schedule data.
What I think I learned: trips described in the feed might have active schedules, or they might not – perhaps they're there for past or upcoming schedules.
What might help future me: try more examples, on different lines and different times. Also try a call against the sample schedule with well known inputs and outputs, to enhance my understanding.
What I am still wondering: is there an indicator that a trip is currently active? Or I should try getting a schedule and if data is empty, it is not active?