From 30e5657c4f46c3188a0541e829cf4c3270abbc69 Mon Sep 17 00:00:00 2001 From: vikiawv Date: Sat, 22 Nov 2025 08:56:56 +0100 Subject: [PATCH] Correcting Albania, Adding Switzerland Variants Signed-off-by: vikiawv --- libs/indexer/road_shields_parser.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/libs/indexer/road_shields_parser.cpp b/libs/indexer/road_shields_parser.cpp index f03e5d016..573f054dd 100644 --- a/libs/indexer/road_shields_parser.cpp +++ b/libs/indexer/road_shields_parser.cpp @@ -570,7 +570,10 @@ class AlbaniaRoadShieldParser : public SimpleRoadShieldParser { public: explicit AlbaniaRoadShieldParser(std::string const & baseRoadNumber) - : SimpleRoadShieldParser(baseRoadNumber, {{"A", RoadShieldType::Italy_Autostrada}) + : SimpleRoadShieldParser(baseRoadNumber, {{"A", RoadShieldType::Italy_Autostrada}, + {"SH", RoadShieldType::Generic_Blue_Bordered}, + {"RR", RoadShieldType::Generic_Blue_Bordered}, + {"E", RoadShieldType::Generic_Green_Bordered}}) {} }; @@ -657,11 +660,15 @@ public: {} }; -class SwitzerlandRoadShieldParser : public SimpleRoadShieldParser +class SwitzerlandRoadShieldParser : public HighwayClassRoadShieldParser { public: - explicit SwitzerlandRoadShieldParser(std::string const & baseRoadNumber) - : SimpleRoadShieldParser(baseRoadNumber, {{"A", RoadShieldType::Highway_Hexagon_Red}}) + explicit SwitzerlandRoadShieldParser(HighwayClass const & highwayClass) + : HighwayClassRoadShieldParser(baseRoadNumber, highwayClass, + {{HighwayClass::Motorway, RoadShieldType::Highway_Hexagon_Red}, + {{HighwayClass::Primary, RoadShieldType::Generic_Blue}, + {{HighwayClass::Secondary, RoadShieldType::Generic_White}, + {{HighwayClass::Tertiary, RoadShieldType::Generic_White}}) {} };