diff options
author | tatiana-yan <tatiana.kondakova@gmail.com> | 2019-01-23 14:20:08 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2019-01-23 17:45:48 +0300 |
commit | a8d32b0d1eef4882be5ed1a693cbf9034197ef76 (patch) | |
tree | ef138175e436046343c90c5e4734ea9260dbd0a9 /indexer/ftypes_matcher.cpp | |
parent | 019c028b1d9b60a351ba5173ae5042cbb5f4bddb (diff) |
[search] Improve streets matching for HouseToStreet table.
Diffstat (limited to 'indexer/ftypes_matcher.cpp')
-rw-r--r-- | indexer/ftypes_matcher.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indexer/ftypes_matcher.cpp b/indexer/ftypes_matcher.cpp index 033b4572c7..d34b2a73d2 100644 --- a/indexer/ftypes_matcher.cpp +++ b/indexer/ftypes_matcher.cpp @@ -200,6 +200,20 @@ IsAirportChecker::IsAirportChecker() m_types.push_back(c.GetTypeByPath({"aeroway", "aerodrome"})); } +IsSquareChecker::IsSquareChecker() +{ + Classificator const & c = classif(); + m_types.push_back(c.GetTypeByPath({"place", "square"})); +} + +IsSuburbChecker::IsSuburbChecker() +{ + Classificator const & c = classif(); + m_types.push_back(c.GetTypeByPath({"landuse", "residential"})); + m_types.push_back(c.GetTypeByPath({"place", "neighbourhood"})); + m_types.push_back(c.GetTypeByPath({"place", "suburb"})); +} + IsStreetChecker::IsStreetChecker() { // TODO (@y, @m, @vng): this list must be up-to-date with |