Ian,
Have you tried posting about this on the MTA Developers Google Group?
https://groups.google.com/forum/#!forum/mtadeveloperresources
You might get more mileage there. If you do(did), please post link to that discussion here so others can follow it.
But, from a quick look at the MTA docs:
…it seems like this is an implementation limitation – starting on page 4 – TripDescriptor section:
“The New York City subway is a 24 x 7 operations and as a result is a highly dynamic operation. The
majority of repairs and maintenance are performed during live operations so the daily service plan is
subject to both planned and unplanned changes. The result of this is that some trips defined in the
GTFS trips.txt may change (originating times, trip running times and trip path), cancelled or new trips
may be added.
Unfortunately, there is no reliable way for us to determine the relationship between the actual and the
static GTFS trip, so we can’t tell if a particular trip is the original one or has been changed or added
later so the ScheduleRelationship is not used.
While trip_id in the GTFS-realtime feed will not directly match the trip_id in trips.txt, a partial match
should be possible if the trip has been defined in trips.txt. If there is a partial match, the trip is a
scheduled trip.”
Examples follow that text.
OneBusAway is designed to be used with GTFS-rt feeds that have exactly matching trip_ids, so it likely won’t work out-of-the-box with this feed. However, you could definitely modify the code to adapt and partially match trip_ids.
Sean
--
You received this message because you are subscribed to a topic in the Google Groups "onebusaway-developers" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/onebusaway-developers/KD4Qijjbx8w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
onebusaway-devel...@googlegroups.com.
To post to this group, send email to
onebusaway...@googlegroups.com.
Visit this group at
http://groups.google.com/group/onebusaway-developers.
For more options, visit https://groups.google.com/d/optout.
Given a stop ID, I want to predict next arrivals, with realtime data if it's available, and scheduled data as a fallback. You hit the nail on the head. It doesn't seem possible to marry the two sources in a reliable way given the dynamic trip_ids from realtime.
Worth stating for the record here -- the reason the subway feed is as kurt describes is (in part) because in the real world trips often get created (or modified) that aren't in the schedule (gasp!). OneBusAway and GTFS are awesome things (just ask my early 30's) but they do not fully model the domain of real transit operations.
--