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

Use half of the headway to generate time for frequency based trips #6212

Open
miklcct opened this issue Oct 30, 2024 · 0 comments
Open

Use half of the headway to generate time for frequency based trips #6212

miklcct opened this issue Oct 30, 2024 · 0 comments

Comments

@miklcct
Copy link
Contributor

miklcct commented Oct 30, 2024

This isn't exactly a bug, but the current code generates time for a frequency based trip which isn't exact times by adding the full headway into the requested time.

For example, if a trip runs every 5 minutes and ends at 23:00, it returns 22:59 if I specify 22:54, and returns no result if I specify 22:55 even if I should be able to catch a service between 22:55 and 23:00.

Also, if an itinerary contains multiple transfers of frequency-based trips, the timing will become unrealistic as the full headway is added to every transfer, while in the real world the expected waiting time is half of the frequency.

I think we need to discuss if we should give an option to generate times for half-headway basis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant