gtfs-validator icon indicating copy to clipboard operation
gtfs-validator copied to clipboard

Rule to capture consecutive stops on a trip have the same arrival and departure times

Open tzujenchanmbd opened this issue 7 months ago • 1 comments

Describe the problem

The current validator seems unable to catch the following unreasonable data: In stop_times.txt, multiple stops in a single trip have the same departure_time and arrival_time. Such data implies that the vehicle must pass through these stops (including the time for passengers to get on and off) within 1 minute. While this might be possible for 2 consecutive stops that are close to each other, we can reasonably doubt the accuracy of the data in cases where there are more than 3 stops.

The existing fast_travel_between_consecutive_stops rule cannot cover this issue. For example, if 10 consecutive stops in a trip have the same time, the fast_travel_between_consecutive_stops rule will not be triggered as long as the distance between each pair of consecutive stops is sufficiently close.

Describe the new validation rule

If more than 3 consecutive stops (including 3) in a trip have the same departure_time and arrival_time: trigger a warning

Sample GTFS datasets

Contact internally for the sample dataset

Severity

No response

Additional context

No response

tzujenchanmbd avatar Jul 26 '24 16:07 tzujenchanmbd