Commit 6547d469 authored by Volker Krause's avatar Volker Krause
Browse files

Make the walk section pruning a bit less aggressive

OTP generates valid short walking sections in a longer bike section
e.g. in case the bike has to be pushed for bit, e.g. due to steps or
restrictions on platforms.
parent 5281509d
Pipeline #84259 passed with stage
in 1 minute and 12 seconds
......@@ -77,9 +77,12 @@ bool JourneyReplyPrivate::needToWaitForAssets() const
static bool isPointlessSection(const JourneySection &section)
if (section.mode() == JourneySection::Walking || section.mode() == JourneySection::Waiting) {
if (section.mode() == JourneySection::Waiting) {
return section.duration() < 60;
if (section.mode() == JourneySection::Walking) {
return section.duration() < 60 && section.path().isEmpty();
return false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment