diff options
author | tatiana-yan <tatiana.kondakova@gmail.com> | 2018-11-12 12:07:18 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2018-11-14 16:57:10 +0300 |
commit | b739e306b85e285c7474573f1f4a4232d4239ff7 (patch) | |
tree | 31a659f065ad0a5f4a398822060346239b0fa52a /indexer | |
parent | 5e2e3254594a5e2cc4e009a3c3e2cb7bdb17728c (diff) |
[index] Make IsEatChecker consistent with new eat category.
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/ftypes_matcher.cpp | 6 | ||||
-rw-r--r-- | indexer/ftypes_matcher.hpp | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/indexer/ftypes_matcher.cpp b/indexer/ftypes_matcher.cpp index aa7c19e15b..4a82b7eb86 100644 --- a/indexer/ftypes_matcher.cpp +++ b/indexer/ftypes_matcher.cpp @@ -379,15 +379,17 @@ IsWifiChecker::IsWifiChecker() m_types.push_back(classif().GetTypeByPath({"internet_access", "wlan"})); } -IsFoodChecker:: IsFoodChecker() +IsEatChecker:: IsEatChecker() { Classificator const & c = classif(); char const * const paths[][2] = { {"amenity", "cafe"}, {"amenity", "bar"}, + {"amenity", "biergarden"}, {"amenity", "pub"}, {"amenity", "fast_food"}, - {"amenity", "restaurant"} + {"amenity", "restaurant"}, + {"shop", "bakery"} }; for (auto const & path : paths) m_types.push_back(c.GetTypeByPath({path[0], path[1]})); diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp index bb591955bf..745abb9072 100644 --- a/indexer/ftypes_matcher.hpp +++ b/indexer/ftypes_matcher.hpp @@ -214,11 +214,11 @@ public: DECLARE_CHECKER_INSTANCE(IsWifiChecker); }; -class IsFoodChecker : public BaseChecker +class IsEatChecker : public BaseChecker { - IsFoodChecker(); + IsEatChecker(); public: - DECLARE_CHECKER_INSTANCE(IsFoodChecker); + DECLARE_CHECKER_INSTANCE(IsEatChecker); std::vector<uint32_t> const & GetTypes() const { return m_types; } }; |