Type a destination into Google Maps that sits two blocks from a stop a bus already serves every twenty minutes, and Google offers walking directions. Not a bus icon, not the wrong time, nothing transit-related at all. The route exists. The driver is running it right now. Google has no way to know that, because nothing has ever told it. This guide is how to create GTFS feed data when nothing like it exists yet.
That gap has a specific, fixable cause. A rider’s phone shows transit service only when an agency has published a General Transit Feed Specification (GTFS) feed. That is a defined set of plain text files describing routes, stops, and schedules. It is hosted at a public web address that Google Maps, Apple Maps, and other trip planners can read. The sections below cover what to collect first, in what order, how to know when it is ready, and what it honestly takes to get there.
This guide assumes no existing GTFS data at all, not even an old attempt that stalled halfway through. If a coordinate pair, two numbers that pin an exact location on a map, is not a familiar idea yet, that is fine. Every term below gets defined before it gets used.
How to Create GTFS Feed Data: What You Need First
Four things. Stops with accurate coordinates, and the route patterns vehicles actually follow. A timetable expressed as a time at every stop on every trip. A service calendar defining which days each pattern runs. Add basic agency details and nothing else is required to publish a first feed. Optional files like route shapes make the result look better to riders, but only once the core four already exist.
Step 1: Your Stops, With Coordinates
Every stop needs three things: a unique identifier, a name, and a coordinate pair, latitude and longitude, marking exactly where it sits. This is the file most agencies underestimate, and it is worth saying plainly: collecting accurate stop coordinates is the long pole in building a first feed. A route with 20 stops means 20 locations to pin precisely, not 20 addresses copied from a spreadsheet.
Three ways to capture a coordinate, in order of accuracy. A smartphone GPS reading taken at the stop is the most reliable, because it captures where the pole actually is. A pin placed on satellite imagery works for a stop with a sign visible from above, though tree cover can throw it off. Geocoding a street address, converting “Main St and 4th Ave” into coordinates, is fastest and least trustworthy. It often lands at the nearest intersection, sometimes most of a block away.
How close is close enough. A stop coordinate within about 5 to 10 meters of the actual curb reads correctly to a rider and passes most validation checks without a second look. A stop that is off by a full block, common with geocoded addresses, tells a different story. The schedule underneath it can be completely correct, and the walking directions a trip planner gives someone heading toward it will still be wrong.
Step 2: Your Route Patterns
A route pattern is the specific sequence of stops one version of a route serves. Most routes are not one pattern. A route might run a short-turn variant during rush hour, skip a loop late at night, or serve an extra stop only on weekends. Each of those variants counts as its own pattern, and GTFS needs each one recorded as its own trip structure linking a route to an ordered stop sequence.
The practical task is listing every distinct stop sequence a route actually runs, not just its main path. Missing a pattern here does not break a feed technically. It just means a rider on that specific variant sees a schedule that quietly does not match the bus that shows up.
Step 3: Your Timetable, as Times at Stops
A public timetable, the printed or web page a rider reads, is not the same thing GTFS needs. GTFS works best with a time at every stop on every trip, not just the departure times a rider-facing schedule prints at a handful of timepoints. The specification requires times only at the first and last stop and at timepoints, but every stop left blank is a stop each app interpolates its own way. Suppose a printed timetable currently lists times only at six major stops along a twenty-stop route. The gaps in between have to be estimated, using running-time knowledge from dispatch or from a scheduler who has actually ridden the route, before the file counts as complete.
This step usually goes faster than agencies expect, since the underlying schedule almost always already exists somewhere, in dispatch software, in a spreadsheet, or in a driver’s paper board. The work here is transcription and interpolation, not invention.
Step 4: Your Service Calendar
A service calendar defines which days each route pattern actually runs: every weekday, weekdays only, Saturdays, Sundays, or some agency-specific mix. It also has to account for holidays, when a weekday route might run a Sunday schedule instead. It has to account for seasonal service too, like a summer schedule or a route that only operates during a school term, each starting and stopping on a specific date.
Get this part wrong and the feed does not fail loudly. It fails silently, showing the wrong schedule on the wrong day with no warning to anyone. Service calendars without gaps covers the calendar file structure and its most common failure mode in full.
Step 5: Assemble and Validate
With stops, patterns, timetable, and calendar in hand, assembling a feed means arranging that data into the required GTFS files and packaging them as a single zip archive. This is the mechanical part. What takes real attention is validation. That means running the finished feed through a checker. It confirms every required file is present, every reference between files resolves correctly, and every field is formatted the way the specification expects.
Skipping this step is a common reason a first submission gets rejected outright. Common GTFS validation errors walks through the errors a first-time feed is most likely to hit and exactly how to fix each one.
Step 6: Publish and Submit
A validated feed still needs a permanent home: a stable public web address that never changes, serving the zip file directly. From there, submission means registering with each consumer an agency wants to reach, starting with Google’s Transit Partner Program. A review follows, and it checks more than a validator alone catches. How to publish GTFS data to Google Maps covers that full submission process, including the specific reasons a first feed most often comes back rejected.
How Long Does a First GTFS Feed Take?
Honestly, longer than the file structure alone would suggest, because stop data collection dominates the timeline. For a small system, roughly 10 to 15 vehicles and a handful of routes, a realistic first-feed timeline runs about 4 to 6 weeks of part-time effort. Most of that goes to walking or driving the service area to capture stops. A mid-sized system in the 20 to 35 vehicle range typically needs 6 to 10 weeks, since there is more ground to cover and more route patterns to document. A larger small-agency system, 40 to 50 vehicles, often runs 10 to 14 weeks.
These are ranges, not guarantees, and every agency’s starting point differs. An agency with clean dispatch data and an existing route map moves faster. One working from paper timetables and institutional memory moves slower. What holds across all three tiers is the same lesson: stops are the bottleneck, not the file format.
Build It Yourself or Have It Built
Both paths produce the same GTFS feed in the end. The honest question is where the effort goes.
Building it yourself means doing every step above with existing staff, using a spreadsheet or an open-source GTFS editing tool. It costs no direct money and a real amount of staff time, spread across the weeks estimated above. It also means the team doing it is usually learning GTFS’s structural quirks, like past-midnight time formatting and required field lists, for the first time, on a live deadline. That learning curve is real and does not disappear because the person doing it is capable.
Having it built, through a vendor or a consulting arrangement, does not remove the stop-collection work. Nobody outside the agency knows where the stops actually are. What it can remove is the structural risk: correct field formatting, valid identifiers, and a feed that passes validation on a much earlier attempt. That happens because the tool or the team doing the assembly has done it many times before.
TransitFare is a transit technology company founded in 2012 that builds GTFS publishing tools for small and mid-sized transit agencies running 10 to 50 vehicles. They sit among other rider information tools on TransitFare Cloud. Agencies starting from zero on TransitFare Cloud typically have a first feed live within about 4 weeks. The platform handles the file structure and validation once stop and schedule data is entered. It does not collect stop coordinates, so an agency still walks its own service area, as in Step 1, on either path.
FAQ
Do I Need Special Software to Create a GTFS Feed?
No. A GTFS feed is only correctly structured plain text files in a zip archive, and nothing in the specification requires a particular tool to produce them. A spreadsheet works for a small system’s first attempt. Most agencies eventually move to dedicated GTFS software once manual editing across hundreds of rows gets unwieldy.
What Is the Minimum I Need to Publish Anything at All?
Six files make a feed technically valid: agency information, stops, routes, trips, stop times, and either a calendar or calendar exceptions file. All four inputs covered in this guide, stops, patterns, timetable, and calendar, feed directly into those six files.
Can I Publish a GTFS Feed With Only One Route?
Yes. GTFS does not require a minimum number of routes. A single-route feed is a legitimate way to get a first system into Google Maps while the rest of a network is still being documented. Consumers evaluate a feed’s structure, not the size of the network behind it.
What Happens If My Stop Coordinates Are Slightly Wrong?
A small error, a few meters, rarely blocks anything and usually goes unnoticed. A large one is different. Placed a full block or more from its real location, a stop can trigger a validator warning. It will also visibly confuse a rider’s walking directions, even though the schedule itself is correct.
Do I Need shapes.txt for a First Feed?
No, shapes.txt is optional. Without it, a trip planner draws a straight line between stops instead of the real street path, which looks wrong but does not block publication. Why route geometry matters covers what that costs in practice and how to add it later.
How Often Does a GTFS Feed Need to Be Updated After the First Publish?
Whenever service changes: a new route, a timetable revision, a seasonal schedule shift, or a calendar renewal before the current one expires. Many small fixed-route agencies update a live feed two to four times a year.
Talk to Us About Your GTFS
An agency with no GTFS feed at all is not behind on a technology upgrade. It is invisible to every rider who checks Google Maps before leaving the house, and that is a lot of riders. Talk to us about your GTFS to see what building or fixing a first feed actually involves for a system this size. Or download the GTFS starter kit to start from a working template instead of a blank spreadsheet.
