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

Support Blending of Branches #606

Open
EddyIonescu opened this issue Mar 8, 2020 · 0 comments
Open

Support Blending of Branches #606

EddyIonescu opened this issue Mar 8, 2020 · 0 comments
Assignees
Labels
Backend Python and API stuff Frontend React, JavaScript, and UI stuff

Comments

@EddyIonescu
Copy link
Member

Currently stats can be returned only for individual branches. For example, someone wanting to see their commute between a local stop in Japantown and Downtown would have to choose between either the 38 Geary from VA Hospital or from Land's End, both of which have a median wait time of 5 minutes.

In cases where there are multiple branches, such as the TTC 52 Lawrence West route which has four branches (A, B, F, G) that run every 9, 23, 18, and 18 minutes respectively; the branches overlap for most of the route, but it's difficult to determine what the median wait-time or trip-times for the combined section are.

It's not an issue for trip-times, as those should generally be similar between branches operating on the same section (assuming they serve the same stops).

For wait-times, it should be possible to get the combined median wait-time by having get_headways (

def get_headways(self, direction_id, stop_id, rng: Range, scheduled=False):
) support multiple direction_id's, and updating the metrics API endpoint and the frontend.

Priority-wise, it doesn't seem that necessary for Muni and TriMet, but I plan on working on this once TTC is added as most of their routes have branches on the outer ends (similar to the 38 Geary), https://www.ttc.ca/PDF/Maps/TTC_SystemMap.pdf

@EddyIonescu EddyIonescu added Frontend React, JavaScript, and UI stuff Backend Python and API stuff labels Mar 8, 2020
@EddyIonescu EddyIonescu self-assigned this Mar 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Python and API stuff Frontend React, JavaScript, and UI stuff
Projects
None yet
Development

No branches or pull requests

1 participant