Skip to content

PathSegment does not take into account diverging routes #21

@hannesj

Description

@hannesj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions