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 #13

Closed
mpadge opened this issue Mar 11, 2019 · 7 comments
Closed

frequencies.txt #13

mpadge opened this issue Mar 11, 2019 · 7 comments

Comments

@mpadge
Copy link
Member

mpadge commented Mar 11, 2019

This is currently not processed, but needs to be in cases where it is present. frequencies.txt described here

@mpadge
Copy link
Member Author

mpadge commented Apr 17, 2020

Madrid has a "transfers.txt" table, as do the Warsaw data used by @stmarcin and discussed in #24. These can - and should - both be used as examples to develop this functionality.

@stmarcin
Copy link
Contributor

Both cases are interesting as they are different: Madrid's metro timetable is fully covered by frequencies, while in case of Warsaw it affects only part of the feed (one transport mode, i.e. metro).
I have a code that converts frequencies.txt into stop_times.txt but it does more things (remove the problem with trips/stop_times which start one day and finish the day after, i.e. departure/arrival hour is 24 or more. I will clean (simply) it and post it here (it works with tidytransit gtfs so no matter how (in)efficient is, it probably would need some tailoring).

@mpadge
Copy link
Member Author

mpadge commented Apr 17, 2020

hey that's great @stmarcin - it would be even better if you wanted to do it as a PR here. You could initially do it as a stand-alone function, and we could then work towards incorporating it automatically in the gtfs_timetable() function. With that and the code i just pasted for calculating "transfers.txt" (#14), the warsaw data would then finally be usable!

@mpadge
Copy link
Member Author

mpadge commented Jun 3, 2020

Closing because @stmarcin added this functionality via #25 - thanks!

@mpadge mpadge closed this as completed Jun 3, 2020
@mpadge
Copy link
Member Author

mpadge commented Jun 28, 2022

Re-opening this issue to re-implement the entire frequencies-to-stop-times routine in C++. Finally found a feed which is almost entirely based on "frequencies" tables (Santiago, Chile), and the routines from #25 just don't scale at all, so must be done in C++ to be usable at all.

@mpadge mpadge reopened this Jun 28, 2022
@mpadge
Copy link
Member Author

mpadge commented Jun 30, 2022

https://multigtfs.readthedocs.io/en/latest/gtfs.html#frequencies-txt-frequency - that's the closest thing i can find for an appropriate reference on the exact relationship between "frequencies.txt" tables and values given in "stop_times.txt":

When trips are defined in frequencies.txt, the trip planner ignores the absolute values of the arrival_time and departure_time fields for those trips in stop_times.txt. Instead, the stop_times table defines the sequence of stops and the time difference between each stop.

@mpadge
Copy link
Member Author

mpadge commented Jan 2, 2023

closing now in favour of #89

@mpadge mpadge closed this as completed Jan 2, 2023
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

2 participants