Check for existence of a shape_id for each trip #1277
Labels
community rules
This is used for Out of Spec / Out of Best Practice rules that we'd like to include in the validator
new rule
New rule to be added
status: Blocked
Can't work on it currently because of an external factor.
Describe the problem
The California Minimum General Transit Feed Specification (GTFS) Guidelines require that schedule feeds, "Include shapes.txt, with valid route shapes for each trip."
While gtfs-validator performs some validation on the shapes in shapes.txt, it does not (to my knowledge) confirm that there exists a shape for each trip in trips.txt.
Describe the new validation rule
If there exists at least one row in trips.txt with a null value in the shape_id column, trigger a "missing_shape_id" notice.
Sample GTFS datasets
No response
Severity
Warning
Additional context
Note that, once a shape_id is referenced in trips.txt, the foreign_key_violation rule will check whether that shape_id actually appears in shapes.txt
The text was updated successfully, but these errors were encountered: