An agency running a bus every 10 minutes from 6 AM to 7 PM has two ways to describe that in the General Transit Feed Specification (GTFS). It can spell out every departure as an individual trip, ending up with well over a hundred near-identical trip rows. Or it can use GTFS frequencies.txt to say the same thing in one line: this trip repeats every 600 seconds across this window. For turn-up-and-go service, the second way is almost always cleaner, and this is a guide to using it correctly.

The choice matters beyond tidiness. Modeled the wrong way, headway service either bloats a feed with redundant rows or shows riders a false promise of exact departure times the schedule never guaranteed.

What Is GTFS frequencies.txt?

GTFS frequencies.txt is the file that turns a single template trip into repeating service across a time window, instead of listing every departure separately. Each row references a trip_id and gives a start_time, an end_time, and a headway_secs value. Consumers then generate the repeated departures from that window, per the gtfs.org frequencies reference.

When Should You Use frequencies.txt Instead of Fixed Stop Times?

Use it when riders do not consult a timetable because service comes often enough that they just show up. A route running every 10 or 15 minutes, a downtown shuttle, or a campus loop fits this model. The rider’s real question is “how long until the next one,” not “does the 6:47 exist.” Frequency-based service answers that question directly.

Fixed stop times remain the right choice for anything a rider plans around. That includes a rural route with four runs a day, a commuter trip timed to a shift change, or any service where missing a specific departure means a long wait. The test is simple. If a rider needs the exact clock time of a departure, publish exact times. If they only need to know the bus comes often, frequencies.txt describes it more honestly and with far fewer rows.

The template trip still needs its stop_times.txt rows. Frequencies do not replace stop times; they reinterpret them. The times on the template trip define the travel time between stops, the offset from one stop to the next, while frequencies.txt defines how often that whole pattern repeats. This is where the route, trip, and stop_time hierarchy still applies, so how GTFS models routes and trips is worth reading first if that structure is not yet clear.

What Is the Difference Between exact_times=0 and exact_times=1?

exact_times is the field that decides how a consumer reads the window. Set to 0, or left blank, it means frequency-based service: the schedule promises a bus roughly every headway_secs, but not at any specific clock time. A rider is told “every 10 minutes,” not “at :00, :10, :20.” This is the mode most turn-up-and-go service should use.

Set to 1, it means the same headway is used to generate exact departures at precise clock times, as if you had typed out each trip by hand. It is a compact way to express evenly spaced fixed-schedule service, a bus at exactly :00, :10, and :20, without listing every trip. Choose it only when those clock times are a real commitment riders can rely on.

trips.txt 78 rows t5_0600 06:00 t5_0610 06:10 t5_0620 06:20 t5_0630 06:30 t5_0640 06:40 t5_0650 06:50 72 more, to 18:50 frequencies.txt 1 row trip_id t5_wkday headway_secs 600 start_time 06:00:00 end_time 19:00:00 exact_times 0 Every 10 minutes, no clock times
The same service as 78 exact trips versus one frequency window

How Do headway_secs, start_time and end_time Define a Service Window?

The three fields together bound a block of repeating service. start_time is the first departure and end_time is when the window closes. headway_secs is the gap between departures inside it. A row reading 06:00:00, 09:00:00, 600 means a bus every 600 seconds, 10 minutes, from 6 AM until the 9 AM boundary.

Service that changes frequency through the day uses several rows for one trip, each covering a window. A common pattern runs every 10 minutes in the morning peak, every 20 minutes midday, then every 10 again for the evening peak. That is three frequencies.txt rows for the same template trip, back to back, with no overlap between windows. Times can exceed 24:00:00 to express service after midnight that still belongs to the prior service day, the same convention stop_times.txt uses. Which day each window runs on is still governed by the trip’s service_id, so service calendars without gaps applies here exactly as it does to fixed-time trips.

Why Must Frequency-Based Trips Avoid timepoint=1?

Because timepoint=1 asserts a stop time is exact, and frequency-based service by definition has no exact times. When exact_times=0, the individual stop times on the template trip are relative offsets, not clock guarantees. Marking a stop timepoint=1 in that situation tells a consumer to treat a time as precise that the frequency model explicitly said was approximate. The two claims contradict each other.

The practical risk is a consumer that surfaces a specific arrival minute the agency never promised. Set timepoint to 0 on the template trip of any exact_times=0 service; leaving it empty means “exact” under the specification. Save exact timepoints for fixed-schedule trips where the clock time is a real commitment. This is one of the errors a schedule change can quietly introduce when a route is converted between fixed and frequency service without cleaning up the old timepoint flags.

How Do Google Maps and Transit Apps Display Headway Service to Riders?

They show a frequency, not a departure list. When exact_times=0, Google Maps, Apple Maps, and popular transit apps typically present the service as “every 10 min” for the window, rather than a timetable of individual departures. That display matches what the data actually claims and what the rider actually needs.

This is the payoff of modeling headway service correctly. A rider opening any mainstream trip planner sees an honest “runs frequently” message instead of a specific minute the agency cannot hold to. Real-time predictions, when available, then sharpen that estimate for the next actual vehicle. GTFS-Realtime, explained covers how a live feed layers real arrival estimates on top of a frequency-based schedule. GTFS transfers.txt covers how a frequent route connects to less frequent service at a hub without a fixed timetable to anchor to.

FAQ

Does frequencies.txt Replace stop_times.txt?

No. The template trip still needs stop_times.txt rows, which define travel time between stops as offsets. frequencies.txt sits on top. It defines how often that whole pattern repeats across a window. You need both files for frequency-based service to work.

What Does exact_times=0 Mean for Riders?

It means the schedule promises a bus roughly every headway interval, not at specific clock times. A rider is told “every 10 minutes,” not “at :00 and :10.” Trip planners display it as a frequency rather than a departure list, which matches the actual commitment.

Can One Trip Change Frequency During the Day?

Yes. Use multiple frequencies.txt rows for the same trip_id, each covering a time window with its own headway_secs. A route can run every 10 minutes at peak and every 20 midday using back-to-back windows, as long as they do not overlap.

Should I Use frequencies.txt for a Route That Runs Four Times a Day?

No. Infrequent service that riders plan around should use fixed stop times so each departure shows as a specific clock time. Frequency modeling suits turn-up-and-go service where riders only need to know the bus comes often.

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 running 10 to 50 vehicles. TransitFare Cloud publishes both representations from the same scheduling data: exact stop times for a rural route, or a frequency window for a high-frequency loop. The platform has processed 60 million+ fare validations, has a strong production reliability record across 13+ years, and rolls out in weeks rather than years. See GTFS publishing in TransitFare Cloud, or start with the GTFS guide for the full standard.