diff options
Diffstat (limited to 'indexer/ftypes_matcher.cpp')
-rw-r--r-- | indexer/ftypes_matcher.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/indexer/ftypes_matcher.cpp b/indexer/ftypes_matcher.cpp index d34b2a73d2..b141bc6096 100644 --- a/indexer/ftypes_matcher.cpp +++ b/indexer/ftypes_matcher.cpp @@ -214,7 +214,7 @@ IsSuburbChecker::IsSuburbChecker() m_types.push_back(c.GetTypeByPath({"place", "suburb"})); } -IsStreetChecker::IsStreetChecker() +IsWayChecker::IsWayChecker() { // TODO (@y, @m, @vng): this list must be up-to-date with // data/categories.txt, so, it's worth it to generate or parse it @@ -243,6 +243,16 @@ IsStreetChecker::IsStreetChecker() m_types.push_back(c.GetTypeByPath({p[0], p[1]})); } +IsStreetOrSuburbChecker::IsStreetOrSuburbChecker() +{ + for (auto const t : IsWayChecker::Instance().m_types) + m_types.push_back(t); + for (auto const t : IsSquareChecker::Instance().m_types) + m_types.push_back(t); + for (auto const t : IsSuburbChecker::Instance().m_types) + m_types.push_back(t); +} + IsAddressObjectChecker::IsAddressObjectChecker() : BaseChecker(1 /* level */) { auto const paths = {"building", "amenity", "shop", "tourism", "historic", "office", "craft"}; |