[openlr] Evaluate FOW for Sliproad/*_link

Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
mvglasow
2025-05-09 20:16:18 +03:00
parent 80a7ed503e
commit 2f6a8564cb

View File

@@ -175,7 +175,8 @@ bool PassesRestrictionV3(Graph::Edge const & e, FunctionalRoadClass functionalRo
score = *frcScore; score = *frcScore;
Score constexpr kScoreForFormOfWay = 25; 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; score += kScoreForFormOfWay;
return true; return true;