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:
authorYuri Gorshenin <y@maps.me>2016-10-06 22:25:34 +0300
committerYuri Gorshenin <y@maps.me>2016-10-11 17:58:27 +0300
commitda69d602c568846235657a843b30c17a672320e1 (patch)
treeab172257367d683031241c75e6f95aeb3813e7f4 /search/geocoder.hpp
parent09566c5ca7aa761a40b0e769e4e44b85c5c3f429 (diff)
[search] Implemented hotels filter.
Diffstat (limited to 'search/geocoder.hpp')
-rw-r--r--search/geocoder.hpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/search/geocoder.hpp b/search/geocoder.hpp
index d6b30a1e1d..ed178ee6e2 100644
--- a/search/geocoder.hpp
+++ b/search/geocoder.hpp
@@ -7,6 +7,7 @@
#include "search/features_layer_path_finder.hpp"
#include "search/geocoder_context.hpp"
#include "search/geometry_cache.hpp"
+#include "search/hotels_filter.hpp"
#include "search/mode.hpp"
#include "search/model.hpp"
#include "search/mwm_context.hpp"
@@ -78,6 +79,7 @@ public:
Mode m_mode;
m2::RectD m_pivot;
+ shared_ptr<hotels_filter::Rule> m_hotelsFilter;
};
enum RegionType
@@ -246,13 +248,14 @@ private:
// Finds all paths through layers and emits reachable features from
// the lowest layer.
- void FindPaths();
+ void FindPaths(BaseContext const & ctx);
// Forms result and feeds it to |m_preRanker|.
- void EmitResult(MwmSet::MwmId const & mwmId, uint32_t ftId, SearchModel::SearchType type,
- size_t startToken, size_t endToken);
- void EmitResult(Region const & region, size_t startToken, size_t endToken);
- void EmitResult(City const & city, size_t startToken, size_t endToken);
+ void EmitResult(BaseContext const & ctx, MwmSet::MwmId const & mwmId, uint32_t ftId,
+ SearchModel::SearchType type, size_t startToken, size_t endToken);
+ void EmitResult(BaseContext const & ctx, Region const & region, size_t startToken,
+ size_t endToken);
+ void EmitResult(BaseContext const & ctx, City const & city, size_t startToken, size_t endToken);
// Tries to match unclassified objects from lower layers, like
// parks, forests, lakes, rivers, etc. This method finds all
@@ -276,6 +279,8 @@ private:
StreetsCache m_streetsCache;
VillagesCache & m_villagesCache;
+ HotelsCache m_hotelsCache;
+ hotels_filter::HotelsFilter m_hotelsFilter;
my::Cancellable const & m_cancellable;