Diagnosis
What this notice means
stop_too_far_from_shape_using_user_distance is a warning in a GTFS Schedule validation report: a stop's distance places it far from its real location. Check stop_times.txt, stops.txt and trips.txt.
The stop-time shape_dist_traveled points to a position on the shape that is far from the stop's coordinates.
Operational effect
Why it matters
The distance value may place the stop on the wrong part of a loop or route.
Scope
Files to check and report fields
stop_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
Compare the reported stop, shape, and distance-derived match. Check units and the distance origin in both files.
- 2
Recalculate the stop's cumulative distance on the correct shape, or fix an inaccurate coordinate or shape assignment. Do not fabricate distances.
- 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 โ 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