OneBusAway / onebusaway-gtfs-realtime-api

Java classes generated for GTFS-realtime extensions.
https://github.com/OneBusAway/onebusaway-gtfs-realtime-api/wiki
Other
21 stars 16 forks source link

GTFS Realtime Alerts Feed Publishes Incorrect Start/End Periods #6

Closed devinbraun closed 7 years ago

devinbraun commented 7 years ago

http://realtime.sdmts.com/api/api/gtfs_realtime/alerts-for-agency/MTS.pbtext?key=org.onebusaway.iphone

When viewing the GTFS-realtime feed alerts output at the link above, the active_period start and end time are incorrect. They are off by a multiple of 1000.

When viewing the alerts in the OBA console, the start and end times are correct. It appears that it might be only an issue in the output of the API endpoint?

barbeau commented 7 years ago

@devinbraun Thanks for the report! Yes, I'm assuming this is a time conversion bug in the GTFS-rt output API. GTFS-rt times are seconds past epoch vs. milliseconds past epoch.

barbeau commented 7 years ago

Actually, I believe this is the wrong project for this bug report - it should be filed on https://github.com/OneBusAway/onebusaway-application-modules. I'll move it there.

barbeau commented 7 years ago

Moved to https://github.com/OneBusAway/onebusaway-application-modules/issues/196.