From 2f6a8564cb67c2d9ed786986353b82b772856cf9 Mon Sep 17 00:00:00 2001 From: mvglasow Date: Fri, 9 May 2025 20:16:18 +0300 Subject: [PATCH] [openlr] Evaluate FOW for Sliproad/*_link Signed-off-by: mvglasow --- openlr/helpers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openlr/helpers.cpp b/openlr/helpers.cpp index 6c1c479d3..1d1fd6fee 100644 --- a/openlr/helpers.cpp +++ b/openlr/helpers.cpp @@ -175,7 +175,8 @@ bool PassesRestrictionV3(Graph::Edge const & e, FunctionalRoadClass functionalRo score = *frcScore; Score constexpr kScoreForFormOfWay = 25; - if (formOfWay == FormOfWay::Roundabout && infoGetter.Get(e.GetFeatureId()).m_isRoundabout) + if ((formOfWay == FormOfWay::Roundabout && infoGetter.Get(e.GetFeatureId()).m_isRoundabout) + || (formOfWay == FormOfWay::Sliproad && infoGetter.Get(e.GetFeatureId()).m_link)) score += kScoreForFormOfWay; return true;