GTFS stops.txt is one file among the six required to publish a General Transit Feed Specification (GTFS) feed. It is almost always the one that takes the longest to build. It is also the one where a small error stops looking like a data problem and starts looking like a bus that never showed up where a rider expected it.
This is a field-by-field guide to stops.txt: stop_id stability, naming conventions riders actually recognize, coordinate accuracy, stop_code, station hierarchy, and accessibility flags. For each field, the specific error that causes a visible rider problem gets named alongside the fix, per the gtfs.org stops.txt reference.
What Is GTFS stops.txt?
stops.txt is the GTFS file listing every stop, station, and entrance in a transit system, one row per location. Each row needs a unique identifier and, for most rows, a name and a coordinate pair. Everything else, codes, accessibility flags, and parent-station links, is optional but shapes how well the feed actually serves riders once it is live.
Coordinate Accuracy
stop_lat and stop_lon place a stop on a map, and how they get captured determines how close that placement is to reality. Standing at the stop with a phone’s GPS reading gives the most trustworthy result. Placing a pin on satellite imagery works for a stop with a clearly visible sign. Geocoding a street address is fastest and least reliable, since it lands at the nearest intersection rather than the actual stop, sometimes off by half a city block.
How close is close enough depends on what breaks first. A coordinate within roughly 5 to 10 meters of the actual curb reads correctly to a rider and clears most validation checks without comment. Beyond about 20 meters, a stop pin can drift onto the wrong side of a street or the wrong block face entirely. That leaves a rider standing at the real pole while an app points them somewhere else. The MobilityData validator only warns when a stop is more than 100 meters from its route shape, so a pin can be wrong well before any warning fires.
The specific error: a stop geocoded from an address instead of measured on the ground lands a block away. A rider trusts the app’s walking directions over their own sense of the street.
Naming Stops the Way Riders Name Them
stop_name should match what a rider already calls the stop, not an internal engineering label. “Main St & 4th Ave” beats an asset-tag identifier every time. A rider searching a trip planner searches for the intersection or the landmark they know, not a code from a maintenance spreadsheet.
Consistency across a system matters more than any individual name choice. Two stops both anchored on “Main Street” should use the same abbreviation pattern, “St” or “Street.” A mix of both makes automatic sorting and rider recognition harder than either needs to be.
The specific error: a stop named after an internal route-planning code, something like RT4-STP-118, shows up verbatim in a trip planner. A rider has no way to recognize it as the corner they are standing on.
stop_id Stability
stop_id is the permanent internal key a stop is referenced by, everywhere: in stop_times.txt, in any transfers.txt row, and in every consumer that has ever cached a copy of the feed. It should never change once assigned. It should never be reused for a different physical location after the original stop is retired.
Reuse is the trap. A stop_id retired last year and reassigned to a brand-new stop this year can pass validation cleanly. It still breaks any consumer that cached the old meaning of that identifier, silently mapping historical data or a stale link to the wrong physical location. stop_id stability and why an identifier must never be reused covers the mechanics of retiring an ID correctly during a schedule change.
The specific error: a retired stop_id gets recycled for a new stop half a mile away. Any system that still holds the old reference points a rider to the wrong corner, with no warning that anything changed.
Parent Stations
location_type and parent_station describe a station hierarchy. A station (location_type=1) can contain platforms, entrances, and generic nodes, each pointing back to it through parent_station; a boarding area points to its platform. Most small agencies with simple curbside stops never need this hierarchy at all. It becomes necessary the moment a single physical location has more than one boardable point, a transit center with several bays, or a multi-platform rail-adjacent stop.
The specific error: a platform’s parent_station points at a sibling platform instead of the actual station row, because the two share a similar name. A trip planner that expects the hierarchy to resolve correctly instead sends a rider to the wrong bay.
Accessibility Flags
wheelchair_boarding tells a consumer whether a stop is accessible: 1 for yes, 2 for no, and 0 or blank for no information available. Left blank at a stop that has a parent station, the value is treated as inherited from that station rather than as a hard “unknown.” That distinction matters for how a trip planner should read a gap in the data. A rider planning a trip with a mobility device has no way to know the difference between “not accessible” and “nobody ever recorded this.” GTFS treats those two situations very differently. A rider looking at an unmarked field cannot tell them apart.
The specific error: every stop in a feed is left at wheelchair_boarding=0, meaning genuinely no information. To a rider using an accessibility filter, that reads as if the entire system might be inaccessible, when the real answer is simply that nobody has surveyed the stops yet. Accessibility data in GTFS covers the full field set and how to build a survey plan that closes that gap.
stop_code
stop_code is a short, rider-facing number, the kind printed on a physical sign, often used for a text-message or phone-based arrival lookup. It is a separate concept from stop_id, which exists purely for the feed’s internal wiring and is never meant to be printed anywhere a rider would see it. Confusing the two causes a quiet mismatch. Printing an internal stop_id on a sign, or treating a printed stop_code as the permanent internal key, is an error that surfaces months later. It shows up during a schedule change nobody connects back to the sign at the stop.
How Do You Build a Stop Inventory From Nothing?
Start by walking or driving the service area and recording a GPS coordinate at every physical stop. That fieldwork is almost always the actual bottleneck, not the file format around it. For a small system’s first pass it can take weeks. Assign each stop a stable, never-reused stop_id as it gets entered. Name it the way a rider would describe the location, and leave accessibility fields honestly blank rather than guessing until a real survey happens. Getting started with GTFS walks through that first build in full, including realistic timelines by fleet size.
FAQ
What Is the Difference Between stop_id and stop_code?
stop_id is the internal identifier a feed uses to wire stops into trips, transfers, and every other file that references a location. It is never meant to be shown to a rider. stop_code is a separate, optional, rider-facing number, the kind printed on a sign for a phone or text-based arrival lookup.
Can Two Routes Share the Same stop_id?
Yes. The GTFS specification allows multiple routes to reference the same stop_id when they physically serve the same location. That is the normal case for any stop served by more than one route.
What Happens If Stop Coordinates Are Inaccurate?
A small drift, a few meters, rarely causes a visible problem. A larger one, a full block or more, can trigger a validator warning for a stop sitting too far from its route shape. It will also visibly confuse the walking directions a rider’s app gives them, even when the schedule itself is correct.
Do I Need Parent Stations for a Simple Curbside Stop?
No. Parent stations exist for locations with more than one boardable point, like a multi-bay transit center. A single curbside stop with one boarding location does not need location_type or parent_station set at all.
What Does wheelchair_boarding = 0 Actually Mean?
It means no accessibility information is available, not that the stop is inaccessible. Leaving every stop at 0 across an entire feed effectively tells riders using an accessibility filter that the system has not been surveyed. That is a very different message than “these stops are not accessible.”
Talk to Us About Your GTFS
stops.txt earns its reputation as the highest-effort file in a first feed honestly. The fieldwork behind it cannot be shortcut, but the structural mistakes covered above, unstable IDs, mismatched names, guessed accessibility flags, all can be. 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. Those agencies rarely have a dedicated data specialist to catch these mistakes before they ship. Talk to us about your GTFS, or download the GTFS starter kit for a stop survey sheet and blank GTFS files to start from. Stop names and coordinates are also the two fields a reviewer checks hardest, which speeding up Google’s GTFS feed audit covers. A transit schedule widget is how one stop name reaches the website without being retyped.