Improve gpx route calculation
This commit is contained in:
parent
05e763f60c
commit
3c1104b1d0
2 changed files with 3 additions and 3 deletions
|
@ -384,9 +384,9 @@ public class BinaryRoutePlanner {
|
|||
float distStartObstacles = segment.distanceFromStart + calculateTimeWithObstacles(ctx, road, segmentDist , obstaclesTime);
|
||||
if(ctx.precalculatedRouteDirection != null && ctx.precalculatedRouteDirection.isFollowNext()) {
|
||||
// reset to f
|
||||
distStartObstacles = 0;
|
||||
// distStartObstacles = 0;
|
||||
// more precise but slower
|
||||
//distStartObstacles = ctx.precalculatedRouteDirection.getDeviationDistance(x, y) / ctx.getRouter().getMinDefaultSpeed();
|
||||
distStartObstacles = ctx.precalculatedRouteDirection.getDeviationDistance(x, y) / ctx.getRouter().getMaxDefaultSpeed();
|
||||
}
|
||||
|
||||
// We don't check if there are outgoing connections
|
||||
|
|
|
@ -122,7 +122,7 @@ public class RoutePlannerFrontEnd {
|
|||
if(res != null) {
|
||||
new RouteResultPreparation().printResults(ctx, start, end, res);
|
||||
}
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
int indexNotFound = 0;
|
||||
List<RouteSegment> points = new ArrayList<BinaryRoutePlanner.RouteSegment>();
|
||||
|
|
Loading…
Reference in a new issue