zacs / ha-gtfs-rt

Real-time transit information for Home Assistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FR: support trip update feeds that only specify delay but not time

macourteau opened this issue · comments

The spec for StopTimeEvent says it can contain delay and/or time. The feed I'm trying to integrate only specifies the delay, and it seems ha-gtfs-rt only looks at the time.

Presumably, ha-gtfs-rt would need to load the base/static GTFS in conjunction with the GTFS RT feed in this situation.

For reference, the base/static GTFS I'm looking at is https://www.rtl-longueuil.qc.ca/CMS/MediaFree/file/GTFS/20230821.zip. An API token for the GTFS RT feed can be obtained by requesting one here (free), after which the feed will be at https://opendata.exo.quebec/ServiceGTFSR/TripUpdate.pb?token=<token>&agency=RTL.

Is this also an issue for the realtime EXO trains feed?

I'm having trouble making heads or tails of getting the data for the trains.