WARNINGGTFS Schedule notice

A stop is too far from the trip's route line

stop_too_far_from_shape
Severity
WARNING
Files to check
4
Report fields
8
Documentation
Curated

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

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

    Follow tripId to its shape_id, then compare the stop coordinate and shape on a map.

  2. 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.

  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