forked from organicmaps/organicmaps
[indexer][search] Set default population for Country and State to avoid zero rank.
This commit is contained in:
parent
8f745d7121
commit
1fdaf6904b
1 changed files with 6 additions and 9 deletions
|
@ -710,15 +710,12 @@ uint64_t GetPopulation(FeatureType & ft)
|
|||
{
|
||||
switch (IsLocalityChecker::Instance().GetType(ft))
|
||||
{
|
||||
case LocalityType::City:
|
||||
case LocalityType::Town:
|
||||
population = 10000;
|
||||
break;
|
||||
case LocalityType::Village:
|
||||
population = 100;
|
||||
break;
|
||||
default:
|
||||
population = 0;
|
||||
case LocalityType::Country: population = 500000; break;
|
||||
case LocalityType::State: population = 100000; break;
|
||||
case LocalityType::City: population = 50000; break;
|
||||
case LocalityType::Town: population = 10000; break;
|
||||
case LocalityType::Village: population = 100; break;
|
||||
default: population = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue