WARNINGGTFS Schedule notice

Two trips look like duplicates

duplicate_trips
Severity
WARNING
Files to check
2
Report fields
4
Documentation
Curated

Diagnosis

What this notice means

duplicate_trips is a warning in a GTFS Schedule validation report: two trips look like duplicates. Check trips.txt and stop_times.txt.

Two trips share a service_id and serve the same stops in the same order at the same arrival and departure times.

Operational effect

Why it matters

Timetables may list the same departure twice, and journey planners may count double capacity.

Scope

Files to check and report fields

Report fieldTypeMeaning
csvRowNumberTripId1FirstStopTimeintegerThe row number from stop_times.txt of the first stop time of the first trip.
csvRowNumberTripId2FirstStopTimeintegerThe row number from stop_times.txt of the first stop time of the duplicate trip.
tripId1stringThe id of the first trip.
tripId2stringThe id of the duplicate trip.

Repair

How to fix it

  1. 1

    Compare the two trips in trips.txt and their rows in stop_times.txt.

  2. 2

    Remove the extra trip if the export duplicated it. If both run, for example as two vehicles coupled together, consider whether one trip with the right attributes describes the service better.

  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