Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortatiana-yan <tatiana.kondakova@gmail.com>2019-01-23 14:20:08 +0300
committermpimenov <mpimenov@users.noreply.github.com>2019-01-23 17:45:48 +0300
commita8d32b0d1eef4882be5ed1a693cbf9034197ef76 (patch)
treeef138175e436046343c90c5e4734ea9260dbd0a9 /indexer/ftypes_matcher.cpp
parent019c028b1d9b60a351ba5173ae5042cbb5f4bddb (diff)
[search] Improve streets matching for HouseToStreet table.
Diffstat (limited to 'indexer/ftypes_matcher.cpp')
-rw-r--r--indexer/ftypes_matcher.cpp14
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