Diagnosis
What this notice means
stop_too_far_from_shape is a warning in a GTFS Schedule validation report: a stop is too far from the trip's route line. Check shapes.txt, stop_times.txt, stops.txt and trips.txt.
The stop lies farther from the assigned shape than the check allows; the usual best-practice distance is 100 metres.
Operational effect
Why it matters
The map may show the vehicle missing its stop, or the trip may use the wrong geometry.
Scope
Files to check and report fields
shapes.txtOpen GTFS specificationstop_times.txtOpen GTFS specificationstops.txtOpen GTFS specificationtrips.txtOpen GTFS specification
| Report field | Type | Meaning |
|---|---|---|
geoDistanceToShape | number | Distance from stop to shape. |
match | array<number, 2> | Latitude and longitude pair of the location. |
shapeId | string | The id of the shape that is referred to. |
stopId | string | The id of the stop that is referred to. |
stopName | string | The name of the stop that is referred to. |
stopTimeCsvRowNumber | integer | The row number of the faulty record from stop_times.txt. |
tripCsvRowNumber | integer | The row number of the faulty record from trips.txt. |
tripId | string | The id of the trip that is referred to. |
Repair
How to fix it
- 1
Follow
tripIdto itsshape_id, then compare the stop coordinate and shape on a map. - 2
Correct the wrong stop location, trip-shape assignment, or shape geometry using real data. Do not move a correct stop onto an incorrect line.
- 3Check the result
After a repair, rebuild the archive and validate it again. Confirm that the affected records are correct and that no new related notices appeared. A reviewed warning or informational notice may remain when it describes intentional, supported data.
Re-check your feed in the browserFree, no upload for a file you pick.
Sources
References
- MobilityData validator ruleCanonical notice metadata and rule details
- GTFS Schedule Reference — shapes.txtOfficial GTFS documentation
- GTFS Schedule Reference — stop_times.txtOfficial GTFS documentation
- GTFS Schedule Reference — stops.txtOfficial GTFS documentation
- GTFS Schedule Reference — trips.txtOfficial GTFS documentation
- Shapes Data GuidanceOfficial GTFS documentation
- GTFS Scorecard fix guidePlain-language repair steps and checks