[routing] Update mwm_hierarchy_handler

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-10-12 10:59:49 +02:00
parent f5afe7f363
commit 340b5ae3f9

View File

@@ -17,20 +17,20 @@ using CountrySetT = std::unordered_set<std::string_view>;
CountrySetT kEAEU = {"Armenia", "Belarus", "Kazakhstan", "Kyrgyzstan", "Russian Federation"}; CountrySetT kEAEU = {"Armenia", "Belarus", "Kazakhstan", "Kyrgyzstan", "Russian Federation"};
// The Schengen Area list of countries. // The Schengen Area list of countries.
CountrySetT kSchengenArea = {"Austria", "Belgium", "Czech Republic", "Denmark", "Estonia", "Finland", CountrySetT kSchengenArea = {"Austria", "Belgium", "Bulgaria", "Croatia", "Czech Republic", "Denmark",
"France", "Germany", "Greece", "Hungary", "Iceland", "Italy", "Estonia", "Finland", "France", "Germany", "Greece", "Hungary",
"Latvia", "Liechtenstein", "Lithuania", "Luxembourg", "Malta", "Netherlands", "Iceland", "Italy", "Latvia", "Liechtenstein", "Lithuania", "Luxembourg",
"Norway", "Poland", "Portugal", "Slovakia", "Slovenia", "Spain", "Malta", "Netherlands", "Norway", "Poland", "Portugal", "Romania",
"Sweden", "Switzerland", "Croatia"}; "Slovakia", "Slovenia", "Spain", "Sweden", "Switzerland"};
std::string_view kIreland = "Ireland"; std::string_view constexpr kIreland = "Ireland";
std::string_view kNorthernIrelandMwm = "UK_Northern Ireland"; std::string_view constexpr kNorthernIrelandMwm = "UK_Northern Ireland";
// In fact, there is no _total_ border control on major roads between Israel and Palestine (UN boundary), except: // In fact, there is no _total_ border control on major roads between Israel and Palestine (UN boundary), except:
// - Gaza, strict access/barrier restrictions should be mapped, no transit traffic. // - Gaza, strict access/barrier restrictions should be mapped, no transit traffic.
// - West bank wall (https://www.openstreetmap.org/relation/1410327), access/barrier restrictions should be mapped. // - West bank wall (https://www.openstreetmap.org/relation/1410327), access/barrier restrictions should be mapped.
CountrySetT kIsraelAndPalestine = {"Israel Region", "Palestine Region"}; CountrySetT kIsraelAndPalestine = {"Israel Region", "Palestine Region"};
std::string_view kJerusalemMwm = "Jerusalem"; std::string_view constexpr kJerusalemMwm = "Jerusalem";
bool IsInSet(CountrySetT const & theSet, std::string const & country) bool IsInSet(CountrySetT const & theSet, std::string const & country)
{ {