Question about Frequencies.txt and Trips.txt

74 views
Skip to first unread message

Brian Ambielli

unread,
Oct 4, 2024, 4:01:16 PMOct 4
to Transit Developers
Hello,

I'm trying to understand the best way to express my transit agency's service with GTFS concepts. 

We run frequency-based service -- during the day across our fixed route, we will have between 1 and 6 buses actively driving. Based on the number of buses that are active at a given time, our headways (the space between buses on a route) can vary anywhere from 4 minutes to 25 minutes (which is the full cycle time of our route).

Given this, I have two questions. 

1. Trips.txt - How many trips do I need to define for this type of service? Do I need just one trip per route per service day? Or do I need one trip per route per *bus* per service day, with proper start and end times that represent when buses 2, 3, 4, 5, and 6 will come in and go out of service (and will therefore adjust the expected headway on the route)?

2. Frequencies.txt - what value do I use in frequencies.txt for "headway_secs"? I think it sort of depends on how we decide to model trips... in the scenario where we just have 1 trip per route per service day, I think I would have multiple records in frequencies.txt that represent how the expected headway changes over the course of the day as buses are added / removed from service. But in the scenario where we have one trip per route per *bus* per service day... then I feel like I'll need to get combinatorial with how I define how each headway changes over the course of the day. For this reason it makes me think that the second way of modeling trips is *not* the right way of modeling for this kid of system, but I'm happy to be corrected... 

Any help is much appreciated! Thanks in advance!
Brian

Kyler Chin

unread,
Oct 9, 2024, 1:52:40 PMOct 9
to transit-d...@googlegroups.com
Frequency txt has a time range. End the time range and then add a new trip for the second headway value. Also provide GTFS Realtime since the schedule itself is difficult for users to know where their bus is and when it's coming.

Kyler Chin - https://catenarymaps.org

2024년 10월 4일 (금) 13:01, Brian Ambielli <brian.a...@gmail.com>님이 작성:
--
You received this message because you are subscribed to the Google Groups "Transit Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to transit-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/transit-developers/a6115b0a-e47a-4daa-bcdb-1da5f3ba9cd0n%40googlegroups.com.

Michael Tsang

unread,
Oct 25, 2024, 3:48:20 PMOct 25
to Transit Developers
How can I specify a frequency range? For example, the headway between 08:00 - 20:00 is every 7 to 12 minutes but it can be anywhere between 7 and 12 not known in advance, depending on the resource allocation of the day.
Reply all
Reply to author
Forward
0 new messages