Why are weekday trips showing on a holiday?
Your timetable says a holiday schedule replaces Friday service. Your trip planner shows the holiday buses and the regular buses. In this fictional GTFS feed, the difference is one missing row in calendar_dates.txt.
Download the two feeds and local checker
Compare the routes on three service dates
For each route, count distinct scheduled trips available on the service date. The two feeds differ only on Friday, July 4, 2025. Both mark the holiday service as added. Only the corrected feed also removes the regular weekday service.
| Service date | Route | Planned trips | Corrected feed | Add-only feed |
|---|---|---|---|---|
| Thu, July 3 | 1 | 2 | 2 | 2 |
| Thu, July 3 | 2 | 1 | 1 | 1 |
| Fri, July 4 | 1 | 1 | 1 | 3 |
| Fri, July 4 | 2 | 2 | 2 | 3 |
| Sat, July 5 | 1 | 1 | 1 | 1 |
| Sat, July 5 | 2 | 0 | 0 | 0 |
Find the extra trips
First find the regular services in calendar.txt whose weekday flag is 1 and whose inclusive date range covers the day. Apply the matching date exceptions, then count the rows in trips.txt for those services, grouped by route_id. Each trip visits two stops here. Counting entries in stop_times.txt would double the totals.
In the corrected feed these two exception rows apply on Friday:
service_id,date,exception_type
HOLIDAY,20250704,1
WEEKDAY,20250704,2
Remove the last row. Route 1 keeps its holiday trip H101 and gains weekday trips W101 and W102. Route 2 keeps holiday trips H201 and H202 and gains weekday trip W201. If the timetable promises additional holiday trips, both services can correctly run together. The operating plan determines the expected counts.
Run the check locally
Unpack the download and run both commands from that folder with Python 3. Leave the two inner GTFS archives zipped. Each command prints the planned count, actual count, difference and trip IDs for every row.
python3 check_service.py correct.zip planned.csv
python3 check_service.py add-only.zip planned.csv
The first command exits with status 0. The second exits with status 1 and reports the two mismatches. To check a planner, import each feed separately and select the historical service dates shown. A planner limited to future dates may require a test clock. You can compare the corrected GTFS feed and add-only GTFS feed directly.
For your own fixed-schedule feed, make a separate plan CSV from your timetable, with each expected route and service date, including zeroes. Use a local copy of your feed. The Python checker skips dates and routes absent from the plan and stops if a feed has frequency-based service. It counts scheduled trip records only. Live departures, service alerts and frequency expansion require other checks.