[generator] Recount coefs for GetRadiusByPopulationForRouting because of boost::area

This commit is contained in:
Mikhail Gorbushin 2019-11-18 22:02:35 +03:00 committed by Maksim Andrianov
parent 0b37b36457
commit 5ffdcac537

View file

@ -734,9 +734,9 @@ double GetRadiusByPopulationForRouting(uint64_t p, LocalityType localityType)
{
switch (localityType)
{
case LocalityType::City: return pow(static_cast<double>(p), 1.0 / 2.6) * 50;
case LocalityType::Town: return pow(static_cast<double>(p), 1.0 / 4.4) * 210.0;
case LocalityType::Village: return pow(static_cast<double>(p), 1.0 / 15.3) * 730.0;
case LocalityType::City: return pow(static_cast<double>(p), 1.0 / 2.5) * 34.0;
case LocalityType::Town: return pow(static_cast<double>(p), 1.0 / 6.8) * 354.0;
case LocalityType::Village: return pow(static_cast<double>(p), 1.0 / 15.1) * 610.0;
default: UNREACHABLE();
}
}