From 9576cbf33a5b9241d5026fb9242fe64ca8d805e9 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Mon, 7 Oct 2019 17:40:08 +0300 Subject: [PATCH] [indexer] Adding checker for type highway=motorway_junction. --- indexer/ftypes_matcher.cpp | 6 ++++++ indexer/ftypes_matcher.hpp | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/indexer/ftypes_matcher.cpp b/indexer/ftypes_matcher.cpp index fe9a5eb20a..89f0e93cd1 100644 --- a/indexer/ftypes_matcher.cpp +++ b/indexer/ftypes_matcher.cpp @@ -620,6 +620,12 @@ IsPublicTransportStopChecker::IsPublicTransportStopChecker() m_types.push_back(classif().GetTypeByPath({"railway", "tram_stop"})); } +IsMotorwayJunctionChecker::IsMotorwayJunctionChecker() +{ + Classificator const & c = classif(); + m_types.push_back(c.GetTypeByPath({"highway", "motorway_junction"})); +} + IsLocalityChecker::IsLocalityChecker() { Classificator const & c = classif(); diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp index 485a2a2b8a..2ff3cc8e28 100644 --- a/indexer/ftypes_matcher.hpp +++ b/indexer/ftypes_matcher.hpp @@ -368,6 +368,13 @@ public: DECLARE_CHECKER_INSTANCE(IsPublicTransportStopChecker); }; +class IsMotorwayJunctionChecker : public BaseChecker +{ + IsMotorwayJunctionChecker(); +public: + DECLARE_CHECKER_INSTANCE(IsMotorwayJunctionChecker); +}; + /// Type of locality (do not change values and order - they have detalization order) /// Country < State < City < ... enum class LocalityType