[routing] Increased weightspeed for primary roads in pedestrian mode.

This commit is contained in:
VladiMihaylenko 2019-04-11 18:48:55 +03:00 committed by Vladimir Byko-Ianko
parent 7933c3beb0
commit d74da60b83
2 changed files with 11 additions and 2 deletions

View file

@ -523,3 +523,12 @@ UNIT_TEST(RussiaElbrusPriut11)
MercatorBounds::FromLatLon(43.35254, 42.43788), {0., 0.},
MercatorBounds::FromLatLon(43.31475, 42.46035), 5998.61 /* expectedTimeSeconds */);
}
// Test on going straight forward on primary road.
UNIT_TEST(BudvaPrimaryRoad)
{
integration::CalculateRouteAndTestRouteLength(
integration::GetVehicleComponents<VehicleType::Pedestrian>(),
MercatorBounds::FromLatLon(42.2884527, 18.8456794), {0., 0.},
MercatorBounds::FromLatLon(42.2880575, 18.8492896), 368.85);
}

View file

@ -34,8 +34,8 @@ HighwayBasedMeanSpeeds const kDefaultSpeeds = {
// {highway class : InOutCitySpeedKMpH(in city(weight, eta), out city(weight eta))}
{HighwayType::HighwayTrunk, InOutCitySpeedKMpH(SpeedKMpH(1.0, 5.0))},
{HighwayType::HighwayTrunkLink, InOutCitySpeedKMpH(SpeedKMpH(1.0, 5.0))},
{HighwayType::HighwayPrimary, InOutCitySpeedKMpH(SpeedKMpH(2.0, 5.0))},
{HighwayType::HighwayPrimaryLink, InOutCitySpeedKMpH(SpeedKMpH(2.0, 5.0))},
{HighwayType::HighwayPrimary, InOutCitySpeedKMpH(SpeedKMpH(3.0, 5.0))},
{HighwayType::HighwayPrimaryLink, InOutCitySpeedKMpH(SpeedKMpH(3.0, 5.0))},
{HighwayType::HighwaySecondary, InOutCitySpeedKMpH(SpeedKMpH(3.0, 5.0))},
{HighwayType::HighwaySecondaryLink, InOutCitySpeedKMpH(SpeedKMpH(3.0, 5.0))},
{HighwayType::HighwayTertiary, InOutCitySpeedKMpH(SpeedKMpH(4.0, 5.0))},