Fix tests
This commit is contained in:
parent
ec3b096afd
commit
c95586879f
1 changed files with 9 additions and 9 deletions
|
@ -871,16 +871,16 @@ public class RouteResultPreparation {
|
|||
double ex = MapUtils.degreesDiff(attached.getBearingBegin(), currentSegm.getBearingBegin());
|
||||
double mpi = Math.abs(MapUtils.degreesDiff(prevSegm.getBearingEnd(), attached.getBearingBegin()));
|
||||
int rsSpeakPriority = highwaySpeakPriority(attached.getObject().getHighway());
|
||||
int lanes = countLanesMinOne(attached);
|
||||
boolean smallStraightVariation = mpi < TURN_DEGREE_MIN;
|
||||
boolean smallTargetVariation = Math.abs(ex) < TURN_DEGREE_MIN;
|
||||
boolean attachedOnTheRight = ex >= 0;
|
||||
if (attachedOnTheRight) {
|
||||
rs.roadsOnRight++;
|
||||
} else {
|
||||
rs.roadsOnLeft++;
|
||||
}
|
||||
if (rsSpeakPriority != MAX_SPEAK_PRIORITY || speakPriority == MAX_SPEAK_PRIORITY) {
|
||||
int lanes = countLanesMinOne(attached);
|
||||
boolean smallStraightVariation = mpi < TURN_DEGREE_MIN;
|
||||
boolean smallTargetVariation = Math.abs(ex) < TURN_DEGREE_MIN;
|
||||
boolean attachedOnTheRight = ex >= 0;
|
||||
if (attachedOnTheRight) {
|
||||
rs.roadsOnRight++;
|
||||
} else {
|
||||
rs.roadsOnLeft++;
|
||||
}
|
||||
if (smallTargetVariation || smallStraightVariation) {
|
||||
if (attachedOnTheRight) {
|
||||
rs.keepLeft = true;
|
||||
|
|
Loading…
Reference in a new issue