Skip to content

drop 0 minute pre and post transit legs#332

Open
traines-source wants to merge 1 commit intomotis-project:masterfrom
traines-source:prepost-0
Open

drop 0 minute pre and post transit legs#332
traines-source wants to merge 1 commit intomotis-project:masterfrom
traines-source:prepost-0

Conversation

@traines-source
Copy link
Contributor

@traines-source traines-source commented Mar 6, 2026

follow up for motis-project/motis#1311. The 0 minute legs were only filtered out in the UI...

Is there an actually relevant case in which one would like to keep a 0 minute leg when fp_leg.from_ != fp_leg.to_?

EDIT: Ok according to the tests there is – but I would just fix the tests and set proper durations != 0 there?

@felixguendling
Copy link
Member

👍

@felixguendling
Copy link
Member

just not sure if it's best to do this in nigiri for one specific algorithm?

wouldn't it be better to have it for all algorithms in MOTIS?

@traines-source
Copy link
Contributor Author

Possible, it just felt ugly since then all the legs have to be shifted again. And because it was already done at this code location.

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

Successfully merging this pull request may close these issues.

2 participants