[search] Add FeatureType::GetSearchRank().

This commit is contained in:
Yury Melnichek 2011-08-16 11:23:51 +02:00 committed by Alex Zolotarev
parent 0a46504d50
commit 11d349c599
2 changed files with 8 additions and 0 deletions

View file

@ -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;
}

View file

@ -378,6 +378,7 @@ public:
uint32_t GetPopulation() const;
double GetPopulationDrawRank() const;
uint8_t GetSearchRank() const;
string GetRoadNumber() const { return m_Params.ref; }