forked from organicmaps/organicmaps
[search] Add FeatureType::GetSearchRank().
This commit is contained in:
parent
0a46504d50
commit
11d349c599
2 changed files with 8 additions and 0 deletions
|
@ -1015,3 +1015,10 @@ double FeatureType::GetPopulationDrawRank() const
|
|||
else
|
||||
return min(3.0E6, static_cast<double>(n)) / 3.0E6;
|
||||
}
|
||||
|
||||
uint8_t FeatureType::GetSearchRank() const
|
||||
{
|
||||
if (!m_bCommonParsed)
|
||||
ParseCommon();
|
||||
return m_Params.rank;
|
||||
}
|
||||
|
|
|
@ -378,6 +378,7 @@ public:
|
|||
|
||||
uint32_t GetPopulation() const;
|
||||
double GetPopulationDrawRank() const;
|
||||
uint8_t GetSearchRank() const;
|
||||
|
||||
string GetRoadNumber() const { return m_Params.ref; }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue