-
Notifications
You must be signed in to change notification settings - Fork 86
Override OSM transfers with GTFS transfers.txt for same stop-pattern pair #983
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
base: dev
Are you sure you want to change the base?
Conversation
they are not yet used in routing deprecate point-to-point routing uses of transfer finder for clarity
also set default value of PER_STOP_PAIR for transfer config
aligns with the method currently used for OSM street transfers
no longer used and made call sites for some methods more opaque
factored out method to rebuild only pattern-for-stop index
|
In my own testing, this can now load the MBTA feed, including GTFS transfers, and route on it. However, only about 2000 of 7000 GTFS transfers are of types that we currently apply to routing, compared to 84000 transfers that must be built by routing through the OSM streets. I have not yet performed enough testing to be convinced the use of stop-to-pattern pairs as keys when merging OSM and GTFS transfers works exactly as intended. |
|
It is worth noting that commit f1a3173 alone should probably be enough to load the MBTA feed without failing, without applying the loaded transfers to routing. This may be a valid short-term solution if we want to avoid disruptive changes to core routing functionality in an upcoming release. |
clarified some docs, set network version to nv4 as a precaution, restore original StreetLayer field initialization order

There turn out to be quite a few nuances here, including the fact that GTFS transfers are in terms of minimum time while OSM transfers are stored as distances and adjusted for user-specified speed; GTFS feeds are loaded one by one in a streaming fashion while OSM transfers are generated all at once in a separate stage; even when transfers supplied within a single GTFS feed are exhaustive, transfers are still needed to stops loaded form other GTFS feeds; OSM transfers are always to the closest (via OSM) stop on another trip pattern, while GTFS transfers might be to other stops that are actually closer due to tunnels (this last point complicating the layering or replacement of OSM transfers by GTFS ones).
Addresses issue #641
Supersedes PR #642, but could benefit from integrating from ideas from that PR.