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

E023 issue wrongly raised for DUPLICATED trips #187

Open
laurentg opened this issue Sep 27, 2024 · 1 comment
Open

E023 issue wrongly raised for DUPLICATED trips #187

laurentg opened this issue Sep 27, 2024 · 1 comment

Comments

@laurentg
Copy link

laurentg commented Sep 27, 2024

Summary:

E023 error (start_time does not match GTFS initial arrival_time) is wrongly raised for schedule_relationship=DUPLICATED trips.

Steps to reproduce:

Validate a GTFS-RT with a schedule_relationship=DUPLICATED trip, linked to a trip where the start time does not match RT.

Expected behavior:

Ignore E023 for DUPLICATED trips.

Observed behavior:

E023 error is raised. Example of live data:

trip start_time does not match first GTFS arrival_time [E023]
For normal scheduled trips (i.e., not defined in frequencies.txt), the GTFS-realtime trip start_time must match the first GTFS arrival_time in stop_times.txt for this trip

  • GTFS-rt trip_id 268439313_27 start_time is 08:18:00 and GTFS initial arrival_time is 05:00:01 - times do not match
    

Platform:

N/A

Relevant section of the code is TripDescriptorValidator::checkE023. The code never checks for duplicated schedule_relationship.

@laurentg
Copy link
Author

Relevant specification of DUPLICATED trips:
https://gtfs.org/documentation/realtime/reference/#enum-schedulerelationship_1

DUPLICATED
A new trip that is the same as an existing scheduled trip except for service start date and time. Used with TripUpdate.TripProperties.trip_id, TripUpdate.TripProperties.start_date, and TripUpdate.TripProperties.start_time to copy an existing trip from static GTFS but start at a different service date and/or time. [...]

(highlighted the relevant section)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant