Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frequencies.txt: support exact_times=0 #19

Open
derhuerst opened this issue Mar 11, 2022 · 0 comments
Open

frequencies.txt: support exact_times=0 #19

derhuerst opened this issue Mar 11, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@derhuerst
Copy link
Member

As of #2, gtfs-via-postgres supports all frequencies.txt rows with exact_times=1, but not those with exact_times=0.

Frequencies.txt represents trips that operate on regular headways (time between trips). This file can be used to represent two different types of service.

  • Frequency-based service (exact_times=0) in which service does not follow a fixed schedule throughout the day. Instead, operators attempt to strictly maintain predetermined headways for trips.
  • A compressed representation of schedule-based service (exact_times=1) that has the exact same headway for trips over specified time period(s). In schedule-based service operators try to strictly adhere to a schedule.

It is unclear how to model frequency-based services in the existing arrivals_departures & connections views, which are currently designed to handle schedule-based services only.

The minimal-effort option would be to expose exact_times in arrivals_departures & connections, but consumers would have to take care to either a) filter exact_times=0 rows out, or b) make sure they handle both cases correctly.

@derhuerst derhuerst added enhancement New feature or request help wanted Extra attention is needed labels Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Development

No branches or pull requests

1 participant