Compare commits
1 Commits
master
...
fixRescuet
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ef5de614e |
@ -493,7 +493,7 @@ public class RoutePlannerFrontEnd {
|
||||
for (int i = 0; i < gpxPoints.size() && !gctx.ctx.calculationProgress.isCancelled; ) {
|
||||
GpxPoint pnt = gpxPoints.get(i);
|
||||
if (pnt.routeToTarget != null && !pnt.routeToTarget.isEmpty()) {
|
||||
makeSegmentPointPrecise(pnt.getFirstRouteRes(), pnt.loc, true);
|
||||
// makeSegmentPointPrecise(pnt.getFirstRouteRes(), pnt.loc, true);
|
||||
LatLon startPoint = pnt.getFirstRouteRes().getStartPoint();
|
||||
if (lastStraightLine != null) {
|
||||
lastStraightLine.add(startPoint);
|
||||
@ -509,7 +509,7 @@ public class RoutePlannerFrontEnd {
|
||||
gctx.finalPoints.add(pnt);
|
||||
gctx.result.addAll(pnt.routeToTarget);
|
||||
i = pnt.targetInd;
|
||||
makeSegmentPointPrecise(pnt.getLastRouteRes(), gpxPoints.get(i).loc, false);
|
||||
// makeSegmentPointPrecise(pnt.getLastRouteRes(), gpxPoints.get(i).loc, false);
|
||||
} else {
|
||||
// add straight line from i -> i+1
|
||||
LatLon lastPoint = null;
|
||||
|
||||
@ -43,7 +43,7 @@ import net.osmand.util.MapUtils;
|
||||
public class RouteResultPreparation {
|
||||
|
||||
public static boolean PRINT_TO_CONSOLE_ROUTE_INFORMATION = true;
|
||||
public static boolean PRINT_TO_CONSOLE_ROUTE_INFORMATION_TO_TEST = false;
|
||||
public static boolean PRINT_TO_CONSOLE_ROUTE_INFORMATION_TO_TEST = true;
|
||||
public static String PRINT_TO_GPX_FILE = null;
|
||||
private static final float TURN_DEGREE_MIN = 45;
|
||||
private static final float UNMATCHED_TURN_DEGREE_MINIMUM = 45;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user