mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[openlr] Evaluate FOW for Sliproad/*_link
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user