Skip to content

Commit ce5bcc7

Browse files
committed
opening typo
1 parent 6ba36a2 commit ce5bcc7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: src/engine/guidance/post_processing.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -528,32 +528,32 @@ void collapseTurnAt(std::vector<RouteStep> &steps,
528528

529529
// check if the actual turn we wan't to announce is delayed. This situation describes a turn
530530
// that is expressed by two turns,
531-
const auto isDelayedTurn = [](const RouteStep &openining_turn,
531+
const auto isDelayedTurn = [](const RouteStep &opening_turn,
532532
const RouteStep &finishing_turn) {
533533
// only possible if both are compatible
534-
if (!compatible(openining_turn, finishing_turn))
534+
if (!compatible(opening_turn, finishing_turn))
535535
return false;
536536
else
537537
{
538538
const auto is_short_and_collapsable =
539-
openining_turn.distance <= MAX_COLLAPSE_DISTANCE &&
539+
opening_turn.distance <= MAX_COLLAPSE_DISTANCE &&
540540
isCollapsableInstruction(finishing_turn.maneuver.instruction);
541541

542-
const auto without_choice = choiceless(finishing_turn, openining_turn);
542+
const auto without_choice = choiceless(finishing_turn, opening_turn);
543543

544544
const auto is_not_too_long_and_choiceless =
545-
openining_turn.distance <= 2 * MAX_COLLAPSE_DISTANCE && without_choice;
545+
opening_turn.distance <= 2 * MAX_COLLAPSE_DISTANCE && without_choice;
546546

547547
// for ramps we allow longer stretches, since they are often on some major brides/large
548548
// roads. A combined distance of of 4 intersections would be to long for a normal
549549
// collapse. In case of a ramp though, we also account for situations that have the ramp
550550
// tagged late
551551
const auto is_delayed_turn_onto_a_ramp =
552-
openining_turn.distance <= 4 * MAX_COLLAPSE_DISTANCE && without_choice &&
552+
opening_turn.distance <= 4 * MAX_COLLAPSE_DISTANCE && without_choice &&
553553
util::guidance::hasRampType(finishing_turn.maneuver.instruction);
554-
return !util::guidance::hasRampType(openining_turn.maneuver.instruction) &&
554+
return !util::guidance::hasRampType(opening_turn.maneuver.instruction) &&
555555
(is_short_and_collapsable || is_not_too_long_and_choiceless ||
556-
isLinkroad(openining_turn) || is_delayed_turn_onto_a_ramp);
556+
isLinkroad(opening_turn) || is_delayed_turn_onto_a_ramp);
557557
}
558558
};
559559

0 commit comments

Comments
 (0)