Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTFS-realtime TripUpdate.delay field not supported #2733

Closed
kurtraschke opened this issue Mar 16, 2019 · 6 comments
Closed

GTFS-realtime TripUpdate.delay field not supported #2733

kurtraschke opened this issue Mar 16, 2019 · 6 comments
Labels
Stale This issue is stale, no activity for 90 days. Remove stale label or comment within 30 days.

Comments

@kurtraschke
Copy link

Expected behavior

GTFS-realtime TripUpdate messages with TripUpdate.delay set are applied to the graph.

Observed behavior

GTFS-realtime TripUpdate messages with TripUpdate.delay set are ignored because they contain zero StopTimeUpdates, and the value in TripUpdate.delay is not applied.

Version of OTP used (exact commit hash or JAR name)

23d3191

Data sets in use (links to GTFS and OSM PBF files)

google_transit.zip

Command line used to start OTP

java -jar otp-1.3.0.jar --build data --inMemory --port 9000 --securePort 9001

Router config and graph build config JSON

router-config.json

Steps to reproduce the problem

  1. Configure OTP with a GTFS-realtime TripUpdate source which makes use of the TripUpdate.delay field (and does not provide stop-level delays or timestamps).
  2. Observe that warning TripUpdate contains no updates, skipping. is logged, and trips do not reflect real-time status when queried in the OTP UI or API.
@sdjacobs
Copy link
Contributor

How common is this use case? I'm noticing this is actually non-compliant with the spec, which states:

At least one stop_time_update must be provided for the trip unless the trip.schedule_relationship is CANCELED - if the trip is canceled, no stop_time_updates need to be provided.

If this kind of GTFS-RT is common, I don't see any harm in including this code, since it won't affect TripUpdates with do contain StopTimeUpdates, and will improve the handling of TripUpdates without StopTimeUpdates. I might even add code to propagate TripUpdate.delay to StopTimeUpdates which don't contain an arrival or departure time (though again, this would be supporting noncompliant GTFS-RT).

(Kurt - sorry, looking into this more, what I said offline wasn't relevant)

@barbeau
Copy link
Contributor

barbeau commented Mar 22, 2019

@sdjacobs The TripUpdate.delay field is experimental and not widely deployed, but it's a legitimate use case. The intention of the field is that no stop_time_updates need to be included when TripUpdate.delay is included. The part of the spec you quoted hasn't caught up with this experimental field yet and needs to be updated - I'll open an issue to update the spec.

Related issue - CUTR-at-USF/gtfs-realtime-validator#329, where based on TransitFeeds.com directory of GTFS-rt feeds we didn't find anyone using TripUpdate.delay in production feeds.

@barbeau
Copy link
Contributor

barbeau commented Mar 22, 2019

Also, Google's validator will throw an error on feeds if they contain both stop_time_updates and TripUpdate.delay - TripUpdate.delay is only allowed in feeds if there are no stop_time_updates.

@github-actions
Copy link

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the Stale This issue is stale, no activity for 90 days. Remove stale label or comment within 30 days. label Jul 25, 2022
@leonardehrenfried
Copy link
Member

I think we want to keep this open as a reminder.

@demory Is this something that IBI would like to use?

@github-actions github-actions bot removed the Stale This issue is stale, no activity for 90 days. Remove stale label or comment within 30 days. label Aug 26, 2022
@github-actions
Copy link

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the Stale This issue is stale, no activity for 90 days. Remove stale label or comment within 30 days. label Nov 25, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale This issue is stale, no activity for 90 days. Remove stale label or comment within 30 days.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants