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:
authorYury Melnichek <melnichek@gmail.com>2011-09-29 16:07:46 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:25:02 +0300
commit0226c8c3eb1eebdc427cd62250fd0ce8900dbdc5 (patch)
treeb11b459568105f0cf9ab9495f3b39f8998fbc388 /indexer/feature_utils.hpp
parentb22c5fe71928744f41b3ee3825c826da8bf79ce6 (diff)
Move GetSearchRank() from FeatureType to an external function.
Diffstat (limited to 'indexer/feature_utils.hpp')
-rw-r--r--indexer/feature_utils.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indexer/feature_utils.hpp b/indexer/feature_utils.hpp
index 271d43d9da..97bfea4b49 100644
--- a/indexer/feature_utils.hpp
+++ b/indexer/feature_utils.hpp
@@ -1,6 +1,7 @@
#pragma once
#include "feature.hpp"
#include "../geometry/rect2d.hpp"
+#include "../base/base.hpp"
namespace feature
{
@@ -8,4 +9,7 @@ namespace feature
// Get viewport to show given feature. Used in search.
m2::RectD GetFeatureViewport(FeatureType const & feature);
+// Get search rank for a feature. Roughly, rank + 1 means that feature is 1.x times more popular.
+uint8_t GetSearchRank(FeatureType const & feature);
+
} // namespace feature