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:
Diffstat (limited to 'search/ranking_info.hpp')
-rw-r--r--search/ranking_info.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/search/ranking_info.hpp b/search/ranking_info.hpp
index 2b47b23632..2668ea0f45 100644
--- a/search/ranking_info.hpp
+++ b/search/ranking_info.hpp
@@ -8,6 +8,7 @@
#include <cstdint>
#include <ostream>
#include <string>
+#include <utility>
class FeatureType;
@@ -36,6 +37,9 @@ struct RankingInfo
// Popularity rank of the feature.
uint8_t m_popularity = 0;
+ // Confidence and UGC rating.
+ std::pair<uint8_t, float> m_rating = {0, 0.0f};
+
// Score for the feature's name.
NameScore m_nameScore = NAME_SCORE_ZERO;