Fix #2420
This commit is contained in:
parent
5146c8283c
commit
f64b174b27
1 changed files with 5 additions and 0 deletions
|
@ -19,6 +19,7 @@ import net.osmand.data.LatLon;
|
||||||
import net.osmand.router.BinaryRoutePlanner.FinalRouteSegment;
|
import net.osmand.router.BinaryRoutePlanner.FinalRouteSegment;
|
||||||
import net.osmand.router.BinaryRoutePlanner.RouteSegment;
|
import net.osmand.router.BinaryRoutePlanner.RouteSegment;
|
||||||
import net.osmand.router.RoutePlannerFrontEnd.RouteCalculationMode;
|
import net.osmand.router.RoutePlannerFrontEnd.RouteCalculationMode;
|
||||||
|
import net.osmand.util.Algorithms;
|
||||||
import net.osmand.util.MapUtils;
|
import net.osmand.util.MapUtils;
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
|
@ -438,6 +439,10 @@ public class RouteResultPreparation {
|
||||||
if (result.get(i).getObject().getOneway() == 0 || result.get(i + 1).getObject().getOneway() == 0) {
|
if (result.get(i).getObject().getOneway() == 0 || result.get(i + 1).getObject().getOneway() == 0) {
|
||||||
ut = false;
|
ut = false;
|
||||||
}
|
}
|
||||||
|
if (!Algorithms.objectEquals(result.get(i).getObject().getName(),
|
||||||
|
result.get(i + 1).getObject().getName())) {
|
||||||
|
ut = false;
|
||||||
|
}
|
||||||
if (ut) {
|
if (ut) {
|
||||||
tnext.setSkipToSpeak(true);
|
tnext.setSkipToSpeak(true);
|
||||||
if (tl && TurnType.isLeftTurnNoUTurn(tnext.getValue())) {
|
if (tl && TurnType.isLeftTurnNoUTurn(tnext.getValue())) {
|
||||||
|
|
Loading…
Reference in a new issue