Increase max segregated distances.

This commit is contained in:
vng
2017-11-13 13:42:00 +03:00
committed by Michael Krasnyk
parent 111030864c
commit 8fa98ed27d
2 changed files with 6 additions and 7 deletions
+5 -6
View File
@@ -889,8 +889,7 @@ bool IsSegregated(std::vector<EdgeInfo> v1,
return false;
}
// set_intersection like routine to count equal name pairs, std function is
// not acceptable because of duplicates {a, a, b} ∩ {a, a, c} == {a, a}.
// set_intersection like routine to get equal result pairs
std::vector<std::pair<EdgeInfo const *, EdgeInfo const *>> commons;
auto i1 = v1.begin();
@@ -933,14 +932,14 @@ bool IsSegregated(std::vector<EdgeInfo> v1,
{
case guidance::RoadPriorityClass::MOTORWAY:
case guidance::RoadPriorityClass::TRUNK:
return 15.0;
return 30.0;
case guidance::RoadPriorityClass::PRIMARY:
return 10.0;
return 20.0;
case guidance::RoadPriorityClass::SECONDARY:
case guidance::RoadPriorityClass::TERTIARY:
return 5.0;
return 10.0;
default:
return 2.5;
return 5.0;
}
};