Many small agencies already run timed connections. The last inbound of the evening holds at the transit center until the connecting route arrives, so riders are not left behind. That promise is real, staff enforce it, and riders who know the system rely on it. The problem is that it usually lives only in the drivers’ heads. GTFS transfers.txt is the file that encodes it into the feed, so a trip planner knows the bus will wait instead of routing riders as if the connection is luck.
Without it, a General Transit Feed Specification (GTFS) trip planner assumes the worst: that a rider arriving two minutes before a departure will miss it. So it hides a connection the agency actually protects, and offers a slower itinerary instead.
What Is GTFS transfers.txt?
GTFS transfers.txt is the optional file that describes how riders move between routes, trips, or stops, and the rules a trip planner should apply to each connection. Each row links a from-location to a to-location and sets a transfer_type, per the gtfs.org transfers reference. The type says whether the connection is timed, needs a minimum time, is in-seat, or is not possible.
What Do the transfer_type Values (0-3) Mean?
transfer_type is the field that carries the rule for a connection. The base values cover the everyday cases:
- 0 (or blank): a recommended transfer point. The consumer decides timing on its own, with no hold and no constraint.
- 1: a timed transfer. The departing vehicle is expected to wait for the arriving one, so the connection is protected.
- 2: a minimum transfer time is required. The connection needs at least
min_transfer_timeseconds, the realistic walk between the two stops. - 3: transfer not possible between these points.
Two more values, 4 and 5, cover in-seat and off-seat connections and are covered further down. The values are the whole point of the file: they turn a stop-to-stop or route-to-route pairing into an instruction a trip planner can act on. A row without a meaningful transfer_type is just a note nobody reads.
When Should You Use a Timed Transfer vs a minimum_transfer_time?
Use transfer_type=1, a timed transfer, when the departing vehicle actually holds for the arriving one. This is an operational promise: a driver waits, dispatch enforces it, riders can count on it. Encoding it tells a trip planner it may build an itinerary on a tight connection because the bus will not leave without those riders.
Use transfer_type=2 with min_transfer_time when the connection is not held but is physically possible given enough time. This is the case at a large stop or between two stops a short walk apart, where a rider needs, say, 300 seconds to cross from one platform to another. The value should reflect the real walk, including the time to read signage and cross a street, not a best-case sprint. Set it too low and a planner routes riders onto a connection they cannot physically make.
This is where getting stops.txt right matters, because an accurate min_transfer_time depends on the two stops sitting at their real coordinates. For connections that happen inside a single large facility, pathways and larger facilities model the walking network in more detail than a single transfer row can.
How Do You Model an In-Seat Transfer With transfers.txt Plus block_id?
An in-seat transfer is when a rider stays aboard while the vehicle changes from one trip to the next. It is common where one bus finishes an inbound run and continues as an outbound run under a different route number. Two things describe it together. block_id in trips.txt marks the trips a single vehicle operates in sequence. A transfers.txt row with transfer_type=4 then states explicitly that riders do not need to get off between those trips.
Using both is the reliable approach. block_id alone tells a consumer the same vehicle runs both trips, but it does not confirm riders may stay seated. A planner has to guess from the interlining pattern. Adding the transfer_type=4 row removes the guess. The related transfer_type=5 covers the case where the same vehicle continues but riders must step off and reboard, sometimes to revalidate a fare. Both use from_trip_id and to_trip_id rather than routes, because an in-seat continuation is specific to the two trips involved. The route-and-trip structure this depends on is covered in how GTFS models routes and trips.
What Did the Newer Trip-Level Transfer Additions Change?
The transfers specification grew beyond its original stop-to-stop, route-to-route scope. Newer additions let a transfer target specific trips through from_trip_id and to_trip_id, not just routes. They also introduced the in-seat transfer types 4 and 5 described above. Together these let an agency encode a held connection at the precise level it actually happens. This trip holds for that trip, not merely this route connects to that route somewhere.
That precision matters for a pulse hub where several routes meet and depart together. A trip-level timed transfer says exactly which departure waits for which arrival, so a trip planner protects the real connection instead of a vague route-level average. It also means a feed can carry both a held evening connection and an unprotected midday one between the same two routes. The rule now attaches to trips rather than being forced to describe the whole route pairing at once.
How Do Trip Planners Use This to Protect Connections?
They read the transfer rule and route riders accordingly. A transfer_type=1 timed transfer tells a trip planner that a tight connection is safe to offer. It can surface the faster itinerary instead of padding in a long wait or hiding the connection outright. A min_transfer_time tells them how much buffer a rider genuinely needs.
The rider-facing result is an itinerary that matches what the agency actually operates. Absent these rules, a planner defaults to caution and can bury a protected connection. It sends riders the long way around a hub the agency deliberately built to connect. Trip planners beyond Google covers the wider set of apps that read this data, and GTFS frequencies.txt covers how a frequent feeder route connects to timed service without a fixed departure to anchor to.
FAQ
What Is the Difference Between a Timed Transfer and a Minimum Transfer Time?
A timed transfer (transfer_type=1) means the departing vehicle waits for the arriving one, so the connection is protected. A minimum transfer time (transfer_type=2 with min_transfer_time) means the connection is not held. It is possible if a rider has at least the specified number of seconds to make it.
Do I Need transfers.txt If My Routes Already Meet at a Hub?
Only if you want trip planners to treat those connections correctly. Routes meeting at a hub still get routed cautiously without transfer rules, so a protected connection can be hidden. Adding transfers.txt rows tells planners which connections are timed, and how much time the others need.
How Is an In-Seat Transfer Encoded?
Use block_id in trips.txt to mark the trips one vehicle runs in sequence. Then add a transfers.txt row with transfer_type=4 and the specific from_trip_id and to_trip_id to confirm riders may stay aboard. Using both together is the recommended practice.
Is transfers.txt Required in a GTFS Feed?
No. It is optional. A feed validates and publishes without it. But an agency that runs timed connections and omits the file leaves trip planners guessing, which usually means protected connections get routed as if they might be missed.
Where TransitFare Fits
TransitFare is a transit technology company founded in 2012 that builds standalone GTFS publishing tools for small and mid-sized transit agencies, from fleets of 10 vehicles to fleets of 50 vehicles. TransitFare Cloud carries block_id from the agency’s trip data, so interlined trips are linked in the feed. It does not generate transfers.txt rules as a standard feature today, so timed and in-seat transfer rows are added separately. The platform has processed 60 million+ fare validations and has a strong production reliability record across 13+ years. See GTFS publishing in TransitFare Cloud, or start with the GTFS guide for the full standard.