derhuerst / hafas-gtfs-rt-feed

Format HAFAS data as GTFS Realtime.
https://github.com/derhuerst/hafas-gtfs-rt-feed#hafas-gtfs-rt-feed
Other
18 stars 1 forks source link

expose which GTFS feed is being used #11

Closed derhuerst closed 2 years ago

derhuerst commented 2 years ago

@felixguendling noted that it's hard to use a GTFS-RT feed without knowing exactly which GTFS feed it matches to.

Because transit operators/authorities frequently publish new GTFS datasets without stable IDs (e.g. the same route might have a different ID, because IDs get generated just be enumerating all routes in an undefined order), and because the operator of a hafas-gtfs-rt-feed instance might switch to the latest GTFS dataset at any time, the IDs within the GTFS-RT feed are effectively unusable.

Some ideas:

felixguendling commented 2 years ago

I think these ideas would work. Another idea would be to add a download URL so the timetable information system can (1) check whether it has the matching version (2) if not directly download the dataset from the specified URL. However, this requires the GTFS-static timetable data to be available under a public URL without login. Maybe several of these options could be combined.