MCPcopy Create free account
hub / github.com/comaps/comaps / GetDefPopulation

Function GetDefPopulation

libs/indexer/ftypes_matcher.cpp:940–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938}
939
940uint64_t GetDefPopulation(LocalityType localityType)
941{
942 switch (localityType)
943 {
944 case LocalityType::Country: return 500000;
945 case LocalityType::State: return 100000;
946 case LocalityType::City: return 50000;
947 case LocalityType::Town: return 10000;
948 case LocalityType::Village: return 100;
949 default: return 0;
950 }
951}
952
953uint64_t GetPopulation(FeatureType & ft)
954{

Callers 2

GetPopulationMethod · 0.85
GetPopulationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected