zacs / ha-gtfs-rt

Real-time transit information for Home Assistant
MIT License
69 stars 29 forks source link

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

Open macourteau opened 11 months ago

macourteau commented 11 months ago

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.

BNolet commented 5 months ago

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.