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

PathSegment does not take into account diverging routes #21

Open
hannesj opened this issue May 11, 2015 · 0 comments
Open

PathSegment does not take into account diverging routes #21

hannesj opened this issue May 11, 2015 · 0 comments

Comments

@hannesj
Copy link

hannesj commented May 11, 2015

Currently PathSegment.addPattern() always uses the pattern with most stops. This is usually good, but not always. If there are two different routes between the start and end point, especially with big geographical deviations, only the longer gets rendered.

Example, two different patterns on one journey from A to D:

[A] -> ---- [B] ---> [C] -> [D]
     \ [E] -> [F] -> [G] /

Transitive always renders only the rote A-E-F-G-D, even if it would have just one departure and A-B-C-D would have multiple departures.

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