WARNINGGTFS Schedule notice

A stop's distance places it far from its real location

stop_too_far_from_shape_using_user_distance
Severity
WARNING
Files to check
3
Report fields
8
Documentation
Curated

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

Report fieldTypeMeaning
geoDistanceToShapenumberDistance from stop to shape.
matcharray<number, 2>Latitude and longitude pair of the location.
shapeIdstringThe id of the shape that is referred to.
stopIdstringThe id of the stop that is referred to.
stopNamestringThe name of the stop that is referred to.
stopTimeCsvRowNumberintegerThe row number of the faulty record from stop_times.txt.
tripCsvRowNumberintegerThe row number of the faulty record from trips.txt.
tripIdstringThe id of the trip that is referred to.

Repair

How to fix it

  1. 1

    Compare the reported stop, shape, and distance-derived match. Check units and the distance origin in both files.

  2. 2

    Recalculate the stop's cumulative distance on the correct shape, or fix an inaccurate coordinate or shape assignment. Do not fabricate distances.

  3. 3
    Check 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