ERRORGTFS Schedule notice

Distance does not increase between stops

decreasing_or_equal_stop_time_distance
Severity
ERROR
Files to check
1
Report fields
8
Documentation
Curated

Diagnosis

What this notice means

Within a trip, shape_dist_traveled stays the same or decreases as stop_sequence increases.

Operational effect

Why it matters

The distances can place stops on the wrong part of the trip's shape, especially on loops.

Scope

Files to check and report fields

Report fieldTypeMeaning
csvRowNumberintegerThe row number from `stop_times.txt`.
prevCsvRowNumberintegerThe row number from `stop_times.txt` of the previous stop time.
prevShapeDistTraveledobjectActual distance traveled along the shape from the first shape point to the previous stop time.
prevStopSequenceintegerThe previous record's `stop_times.stop_sequence`.
shapeDistTraveledobjectActual distance traveled along the shape from the first shape point to the faulty record.
stopIdstringThe id of the faulty stop.
stopSequenceintegerThe faulty record's `stop_times.stop_sequence`.
tripIdstringThe id of the faulty trip.

Repair

How to fix it

  1. 1

    Compare the reported row with prevCsvRowNumber in stop_times.txt and check the actual stop order.

  2. 2

    Recalculate cumulative distances along the correct shape, using the same units as shapes.txt. Preserve enough precision for consecutive values to increase; do not invent increments.

  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