MobilityData / gtfs-validator

Canonical GTFS Validator project for schedule (static) files.
https://gtfs-validator.mobilitydata.org/
Apache License 2.0
278 stars 100 forks source link

Implement trip consecutive stops verification (GTFS rule) #178

Open maximearmstrong opened 4 years ago

maximearmstrong commented 4 years ago

Is your feature request related to a problem? Please describe. A trip should not have many consecutive stops with the same times. This is a GTFS rule implemented in Google Python validator as ValidateStopTimesForTrip.

Describe the solution you'd like Actual Google GTFS validator behaviour : Verifies the stop times for a trip, ensure that trip does not have too many consecutive stop times with the same arrival or departure time. https://github.com/google/transitfeed/blob/master/transitfeed/schedule.py line 1169

Describe alternatives you've considered

Additional context Line 170 in Error support priorities https://docs.google.com/spreadsheets/d/1vqe6wq7ctqk1EhYkgtZ0_TbcQ91vccfs2daSjn20BLE/edit#gid=0

barbeau commented 4 years ago

Looking at the Python validator, looks like if there are more than 5 consecutive stop_times with the same time they throw an error.

maximearmstrong commented 4 years ago

Oh, thanks. I did not catch this part of the rule.

isabelle-dr commented 1 year ago

Labeling as blocked because this mention is not in the spec or best practices, and currently this validator doesn't include additional checks.