From 70d1a018e7ae1415601c4d24c854cf4636147eca Mon Sep 17 00:00:00 2001 From: David Martinez <47610359+dvdmrtnz@users.noreply.github.com> Date: Sun, 25 Feb 2024 17:07:15 +0100 Subject: [PATCH] [core] Add drinking water ftraits Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com> --- indexer/ftraits.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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