Improve gpx route calculation

This commit is contained in:
vshcherb 2014-03-03 18:44:17 +01:00
parent 05e763f60c
commit 3c1104b1d0
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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>();