'How does GTFS realtime data behave
I'm trying to construct some sort of realtime API for and I've got everything I need, but now that it's actually come time to query the data, it seems....wrong. I'm seriously hoping it's not and I'm doing something stupid, but from what I'm looking at it just doesn't seem to work.
I have my static GTFS data which I can query for a certain stop to get the departure times for the routes at that stop. Then I can take the trip IDs associated with each one and query my realtime data.
Every 30 seconds I fetch realtime data from the GTFS-R feed but most of the time the relevant trip IDs aren't found in there. Am I right in saying that when I fetch from the GTFS-R feed I get back the full set of realtime changes? Or should I be storing and updating the responses I get? I just can't figure out exactly what comes back in the GTFS-R response. I.e. is it all realtime changes each time, so if a bus is 5 mins late will that come back every time I query the endpoint, or just once?
Any help appreciated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
