From e03edeec710ffb328b25a631419715ee5ed0b4d7 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Thu, 18 Jun 2020 19:45:51 +0300 Subject: [PATCH] [openlr] Using secondary roads for frc4. --- openlr/helpers.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openlr/helpers.cpp b/openlr/helpers.cpp index ce7928f2b5..e54fd2ea43 100644 --- a/openlr/helpers.cpp +++ b/openlr/helpers.cpp @@ -67,7 +67,9 @@ optional GetFrcScore(Graph::Edge const & e, FunctionalRoadClass functiona if (hwClass == ftypes::HighwayClass::LivingStreet || hwClass == ftypes::HighwayClass::Service) return optional(kMaxScoreForFrc); - return hwClass == ftypes::HighwayClass::Tertiary ? optional(0) : nullopt; + return (hwClass == ftypes::HighwayClass::Tertiary || hwClass == ftypes::HighwayClass::Secondary) + ? optional(0) + : nullopt; case FunctionalRoadClass::FRC5: case FunctionalRoadClass::FRC6: