forked from organicmaps/organicmaps
[core] Add drinking water ftraits
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
This commit is contained in:
parent
0dd0741943
commit
70d1a018e7
1 changed files with 20 additions and 0 deletions
|
@ -101,4 +101,24 @@ class Wheelchair : public TraitsBase<Wheelchair, WheelchairAvailability>
|
|||
}
|
||||
};
|
||||
|
||||
enum class DrinkingWaterAvailability
|
||||
{
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
class DrinkingWater : public TraitsBase<DrinkingWater, DrinkingWaterAvailability>
|
||||
{
|
||||
friend class TraitsBase;
|
||||
|
||||
using TypesInitializer = std::initializer_list<std::initializer_list<char const *>>;
|
||||
|
||||
DrinkingWater()
|
||||
{
|
||||
m_matcher.Append<TypesInitializer>({{"drinking_water", "no"}}, DrinkingWaterAvailability::No);
|
||||
m_matcher.Append<TypesInitializer>({{"drinking_water", "yes"}}, DrinkingWaterAvailability::Yes);
|
||||
m_matcher.Append<TypesInitializer>({{"amenity", "drinking_water"}}, DrinkingWaterAvailability::Yes);
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace ftraits
|
||||
|
|
Loading…
Add table
Reference in a new issue