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-04-25 16:36:57 +0300
committermpimenov <mpimenov@users.noreply.github.com>2019-05-07 11:19:34 +0300
commit58d86f929f2ac164ac9141e3c159550494573e48 (patch)
tree8e3f7ec3f2bc731a6fea8ce59c4cdea2d77b6555 /indexer
parentc08ce405d3d310afa5f062563511ecdf8385eff7 (diff)
[search_quality] Booking dataset generation tool.
Diffstat (limited to 'indexer')
-rw-r--r--indexer/ftypes_matcher.cpp5
-rw-r--r--indexer/ftypes_matcher.hpp8
2 files changed, 13 insertions, 0 deletions
diff --git a/indexer/ftypes_matcher.cpp b/indexer/ftypes_matcher.cpp
index 276e963994..4275dba571 100644
--- a/indexer/ftypes_matcher.cpp
+++ b/indexer/ftypes_matcher.cpp
@@ -550,6 +550,11 @@ char const * IsHotelChecker::GetHotelTypeTag(Type type)
UNREACHABLE();
}
+IsBookingHotelChecker::IsBookingHotelChecker()
+{
+ m_types.push_back(classif().GetTypeByPath({"sponsored", "booking"}));
+}
+
IsWifiChecker::IsWifiChecker()
{
m_types.push_back(classif().GetTypeByPath({"internet_access", "wlan"}));
diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp
index c2adbe18f9..b77a45d722 100644
--- a/indexer/ftypes_matcher.hpp
+++ b/indexer/ftypes_matcher.hpp
@@ -303,6 +303,14 @@ private:
std::array<std::pair<uint32_t, Type>, base::Underlying(Type::Count)> m_sortedTypes;
};
+class IsBookingHotelChecker : public BaseChecker
+{
+ IsBookingHotelChecker();
+
+public:
+ DECLARE_CHECKER_INSTANCE(IsBookingHotelChecker);
+};
+
// WiFi is a type in classificator.txt,
// it should be checked for filling metadata in MapObject.
class IsWifiChecker : public BaseChecker