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 field | Type | Meaning |
|---|---|---|
csvRowNumberTripId1FirstStopTime | integer | The row number from stop_times.txt of the first stop time of the first trip. |
csvRowNumberTripId2FirstStopTime | integer | The row number from stop_times.txt of the first stop time of the duplicate trip. |
tripId1 | string | The id of the first trip. |
tripId2 | string | The id of the duplicate trip. |
Repair
How to fix it
- 1
Compare the two trips in
trips.txtand their rows instop_times.txt. - 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.
- 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