diff --git a/generator/osm2meta.cpp b/generator/osm2meta.cpp index 2eeba72189..39d0069134 100644 --- a/generator/osm2meta.cpp +++ b/generator/osm2meta.cpp @@ -111,7 +111,8 @@ std::string MetadataTagProcessorImpl::ValidateAndFormat_operator(std::string con ftypes::IsPostOfficeChecker::Instance()(t) || ftypes::IsCarSharingChecker::Instance()(t) || ftypes::IsCarRentalChecker::Instance()(t) || - ftypes::IsBicycleRentalChecker::Instance()(t)) + ftypes::IsBicycleRentalChecker::Instance()(t) || + ftypes::IsParkingChecker::Instance()(t)) { return v; } diff --git a/indexer/ftypes_matcher.cpp b/indexer/ftypes_matcher.cpp index 5286a295fe..13738cb2be 100644 --- a/indexer/ftypes_matcher.cpp +++ b/indexer/ftypes_matcher.cpp @@ -241,6 +241,12 @@ IsBicycleRentalChecker::IsBicycleRentalChecker() m_types.push_back(c.GetTypeByPath({"amenity", "bicycle_rental"})); } +IsParkingChecker::IsParkingChecker() : BaseChecker(2 /* level */) +{ + Classificator const & c = classif(); + m_types.push_back(c.GetTypeByPath({"amenity", "parking"})); +} + IsRecyclingCentreChecker::IsRecyclingCentreChecker() : BaseChecker(3 /* level */) { Classificator const & c = classif(); diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp index 1a4a824758..3bfd92c2e0 100644 --- a/indexer/ftypes_matcher.hpp +++ b/indexer/ftypes_matcher.hpp @@ -126,6 +126,14 @@ public: DECLARE_CHECKER_INSTANCE(IsBicycleRentalChecker); }; +class IsParkingChecker : public BaseChecker +{ + IsParkingChecker(); + +public: + DECLARE_CHECKER_INSTANCE(IsParkingChecker); +}; + class IsRecyclingCentreChecker : public BaseChecker { IsRecyclingCentreChecker();