A trip planner shows the route, the departure time, and the walk to the stop. It does not show what the ride costs. For many small agencies, that question, asked constantly by riders, goes unanswered. GTFS-Fares v2 was built to fix exactly that. This piece covers what the model can express, and what the earlier fare format could not do. It covers why the model matters most for agencies with concessions or zone fares, and what fare capping in the data can and cannot promise. It also covers what it takes to keep the data accurate once a fare policy changes.
What Is GTFS-Fares v2?
GTFS-Fares v2 is the newer fare model in the General Transit Feed Specification (GTFS). It is built around fare products, leg rules, and transfer rules instead of one flat price per route. A fare product is a purchasable item, a leg rule prices one ride, and a transfer rule prices what happens when a rider connects between rides. Together they let a trip planner calculate a real fare for a real, multi-leg journey.
Its files, fare_products.txt, fare_leg_rules.txt, and fare_transfer_rules.txt among them, sit inside the same gtfs.org schedule reference as the rest of GTFS. They are optional. But they are validated and read by the same tooling every producer already uses.
What Fares v1 Could Not Do
The original fare format, fare_attributes.txt and fare_rules.txt, could express a flat price attached to a route, an origin and destination zone pair, or the whole network. That covered the simplest case: one flat fare, one price. An agency with a single flat fare could describe it, technically, and many did.
What it could not do is describe the fare policy most agencies actually run. It had no clean way to express a reduced fare for a rider category. It could not price a leg based on the specific stops used rather than the route as a whole.
It could say how many free transfers a fare allowed and for how long, but not a discounted transfer or one tied to specific routes. Concessions, zone pricing with more than a couple of zones, and any transfer rule with a real discount all pushed past what the format could cleanly hold.
Agencies with that kind of policy either left fare data out of the feed entirely, or published something a trip planner had to interpret loosely to be useful at all. A senior rider paying a reduced fare across two zones with a discounted transfer, a routine trip at plenty of small agencies, simply had no honest representation in Fares v1.
How GTFS Fares v2 Prices a Trip
Three files carry the weight of a real fare policy.
Fare products. fare_products.txt defines what a rider can buy: a single ride, a day pass, a reduced fare for a rider category. Each is its own row, with its own price and its own rider-category and fare-media associations.
Leg rules. fare_leg_rules.txt prices one leg of a journey. A leg rule can be scoped by network, by area, or by the specific stops a leg starts and ends at. That means a zone-based or distance-based fare can be modeled the way the agency actually charges it, not approximated.
Transfer rules. fare_transfer_rules.txt prices what happens at a connection: a free transfer within a set duration, a discounted second leg, or a full second fare. Each is expressed as its own rule instead of assumed. A rider crossing two zones with one transfer gets one calculated total. It is built from a leg rule for each leg and a transfer rule for the connection between them, instead of a guess.
Put together, a rider crossing from a downtown zone to an outlying zone, transferring once along the way, gets a single price. It is not two separate route fares added together with no discount applied. That single price is what a trip planner needs before it can show a real cost estimate next to the route it already displays.
Concessions and Zone Fares
This is where the model matters most for a small agency. A flat single fare barely needed Fares v2 to begin with. A fare structure built around concessions, zones, or both is exactly what Fares v1 could never express cleanly.
rider_categories.txt lets an agency define a senior fare, a youth fare, or a reduced fare tied to eligibility. Each gets its own price in fare_products.txt. It is no longer a note in a policy document nobody outside the fare office reads. fare_leg_rules.txt scoped by area lets a zone system price a leg by the zones it actually crosses, whether the system has two zones or six.
For an agency where the concession and the zone are the fare policy, not an edge case bolted onto a flat fare, this is the difference that matters. It is the difference between a trip planner that can answer a rider’s question and one that cannot.
Capping in the Fare Data
Fare capping is a real feature riders value: a rider is never charged more than a set amount across a day or a week, no matter how many trips they take. It is also a feature TransitFare’s Automated Fare Collection already supports in its fare rules, as how fare capping works explains.
Where the GTFS fares v2 data itself stands today is more limited, and worth being precise about. fare_transfer_rules.txt can express a bounded transfer window and a discounted or free second leg within it. That behaves like a small-scale cap on a single connection. It does not yet give a clean, general way to express a full daily or weekly best-fare cap across an arbitrary number of separate rides, published as static data.
That kind of capping today lives in the fare collection system’s payment logic, not in the GTFS feed. The feed can describe the policy a cap is based on. It does not currently carry the running total itself. Treat the published data as describing what a single ride or a single connection costs, and treat capping as a payment-system feature the data does not yet fully represent.
What Does It Take to Keep It Accurate?
Keeping fares v2 data accurate is a real ongoing cost, and it grows directly with how often fare policy changes. Every fare increase, every new rider category, and every change to a transfer window has to reach fare_products.txt, fare_leg_rules.txt, or fare_transfer_rules.txt before the new policy takes effect. Otherwise the published data quietly starts lying to every trip planner reading it.
A single flat fare might go untouched for 3 years and cost almost nothing to maintain. A zone system with concessions changes more often, sometimes more than once in a single year, and each change touches more rows across more files. The practical fix is the same one that keeps any GTFS file honest. Treat a fare policy change exactly like a service change: a scheduled event with a publish step attached, published before the new policy takes effect. Do not let it become an afterthought discovered only when a rider complains that the app quoted the old price.
Where This Fits
TransitFare is a transit technology company founded in 2012 that builds fare collection and GTFS publishing tools for small and mid-sized transit agencies. Its GTFS feed does not include fare files today, so Fares v2 data is built separately.
The platform has processed 60 million+ fare validations across its Automated Fare Collection customers, and a software-only rollout typically takes about 4 weeks.
A trip planner that cannot answer “what will this cost me” is answering half the question a rider actually asked. GTFS-Fares v2 is how the other half gets answered, for the agencies that take the time to publish it accurately and keep it that way. For the fare collection side that keeps the published policy honest, see TransitFare Automated Fare Collection. For the rest of your feed, talk to us about your GTFS.