diff --git a/indexer/ftraits.hpp b/indexer/ftraits.hpp index 1ca90a416c..a66d8479a9 100644 --- a/indexer/ftraits.hpp +++ b/indexer/ftraits.hpp @@ -101,4 +101,24 @@ class Wheelchair : public TraitsBase } }; +enum class DrinkingWaterAvailability +{ + No, + Yes, +}; + +class DrinkingWater : public TraitsBase +{ + friend class TraitsBase; + + using TypesInitializer = std::initializer_list>; + + DrinkingWater() + { + m_matcher.Append({{"drinking_water", "no"}}, DrinkingWaterAvailability::No); + m_matcher.Append({{"drinking_water", "yes"}}, DrinkingWaterAvailability::Yes); + m_matcher.Append({{"amenity", "drinking_water"}}, DrinkingWaterAvailability::Yes); + } +}; + } // namespace ftraits