Generating GTFS from scheduling software instead of retyping it by hand sounds obvious once someone says it out loud, and yet many small agencies do not do it. A scheduler at a small agency built next season’s timetable in a spreadsheet, the same way it had been built for years. Then someone else spent two full days retyping the identical trips, stops, and times into a General Transit Feed Specification (GTFS) file. The spreadsheet and the feed had never been connected. The same schedule existed twice, built by hand twice, with two separate chances to introduce an error that would not match the other.
That duplication is the normal state at many small agencies, not an unusual failure. The schedule gets built once, wherever scheduling actually happens, and then rebuilt as GTFS as a second, disconnected step. Two full days lost to retyping is not a rare outcome. It is what happens by default whenever nobody has built the mapping between the two.
Can You Automate GTFS From Scheduling Software?
Yes, in nearly every case. GTFS from scheduling software is achievable whether the source is dedicated scheduling software, a spreadsheet, or a system that was never built with GTFS in mind. The schedule already contains everything GTFS needs. Automation means mapping that existing structure into the GTFS format correctly, once, rather than retyping it by hand at every schedule change.
What Has to Map
Four things need a clean, repeatable mapping from source to feed.
| Source concept | Maps to | Common failure |
|---|---|---|
| Stops | stops.txt | Identifier or location shifts between exports |
| Patterns (stop sequence) | shapes.txt, stop_times.txt | Sequence breaks when a stop is added mid-route |
| Trips | trips.txt | A new trip_id generated fresh on every export |
| Calendars | calendar.txt, calendar_dates.txt | Exceptions and holidays dropped in translation |
Stops need a stable identifier and a location that does not shift between exports. Patterns, the sequence of stops a route follows, need to map to GTFS’s shapes.txt and the stop sequence in stop_times.txt consistently. Trips need a unique, stable identifier per scheduled run, not a new one generated fresh on every export. Calendars need the weekly pattern and any exceptions to translate correctly into calendar.txt and calendar_dates.txt. Service calendars without gaps covers that specific translation in depth, since it is one of the mapping steps that fails quietly rather than loudly.
Exporting From a Spreadsheet
A spreadsheet is the most common real starting point for a small agency, not dedicated scheduling software. It can produce a clean GTFS export if the mapping is built with intention rather than assembled ad hoc. Each spreadsheet column needs an explicit, documented destination. A route name column maps to routes.txt, a stop list maps to stops.txt and stop_times.txt, and a days-of-week column maps to calendar.txt. Building that mapping once, as a script or a template rather than a manual copy-paste routine, is the difference. It is what turns a spreadsheet into a repeatable export process instead of a one-time trick.
The spreadsheet itself does not need to change format to make this work. What has to change is discipline: consistent column names, consistent stop naming, and no manual edits to the exported GTFS file after the fact. An edit made directly to the output rather than the source spreadsheet disappears the next time someone re-runs the export. That is a common enough mistake that it deserves a rule of its own. Treat the spreadsheet as the only place edits happen, ever, and treat the generated GTFS file as disposable output that gets regenerated rather than hand-patched.
A team that builds the mapping once usually has it running reliably within a few weeks. Most of that time goes to getting the column structure consistent rather than to writing the export logic itself.
What a Naive Export Breaks
Three specific failures show up constantly in a first, naive attempt at automation. Identifier stability is the most common. A trip_id or stop_id regenerated fresh on every export, rather than kept stable across runs, breaks any consumer or downstream tool that stored a reference to the old identifier. It silently disconnects realtime data from the static feed it is meant to match.
Timepoints are the second. A naive export often assumes every stop is a timepoint the vehicle should hit exactly on schedule. Many stops are actually interpolated points a vehicle passes at an approximate time, and getting this wrong produces arrival predictions that are technically present and functionally wrong. Calendars are the third, covered above, where a naive export handles the routine weekly pattern fine and mishandles every exception layered on top of it.
Running a schedule change without breaking the feed covers the broader failure pattern these three feed into. An automation can work cleanly the first time and then break quietly at the next service change. The input data shifts in a way the original mapping never anticipated.
Validating the Automated Output
An automated export needs the same validation a hand-built feed does, arguably more, since an automation error tends to be systematic rather than a single typo. The GTFS errors that break your feed covers running a feed through the MobilityData GTFS validator as the baseline check. The more important validation for an automated pipeline specifically is a diff against the previous export. Comparing identifiers, stop counts, and trip counts release over release catches a systematic mapping error that a validator’s structural checks alone will not. A consistently wrong feed can still be a structurally valid one.
What If Scheduling Lives in Someone’s Head?
This is more common than any agency likes to admit, and it makes automation impossible until it is fixed first. If the schedule exists only as institutional knowledge, adjustments one scheduler remembers to make by habit rather than a documented source, there is nothing structured to automate from yet. You have no GTFS. Start here. covers the first step directly: getting the schedule into any structured format at all, even a basic spreadsheet, before automation becomes possible. Automation only removes duplicate typing. It cannot substitute for a source of truth that does not yet exist in written form.
Writing the schedule down for the first time is often the harder half of this whole problem. It is easy to underestimate how much of it lives only in one person’s memory until someone tries to document it. A scheduler who has run the same routes for years may not consciously think of a recurring detour, a driver-only shortcut, or an unwritten exception as a rule at all. It is just how things are done. Surfacing those unwritten rules before building an automated export, rather than discovering them the first time the automation gets something wrong, is worth the extra week or two it usually takes.
Automate the Mapping, Not the Exception
The realistic goal is not a fully hands-off pipeline that never needs a human. It is removing the duplicate typing for the routine 90 percent of a schedule. A deliberate human review step stays in place for the exceptions: a new route, an unusual calendar, a change nobody has automated for yet. An agency that reaches that split has solved the actual problem in the opening example: the same schedule, built and retyped twice. It does that without pretending automation eliminates the judgment a service change still requires.
TransitFare is a transit technology company founded in 2012 that builds GTFS publishing tools for small and mid-sized transit agencies, from fleets of 10 vehicles to fleets of 50 vehicles. When the schedule is maintained in TransitFare Cloud, a service change regenerates the feed without a separate export step. Talk to us about your GTFS, or read running a schedule change without breaking the feed for what happens after the export runs.