fixed routing glitch at final segment

This commit is contained in:
Arndt Brenschede 2018-12-14 00:56:29 +01:00
parent 307a50b840
commit 20e1d5aabb

View file

@ -742,7 +742,7 @@ public class RoutingEngine extends Thread
OsmPath startPath = routingContext.createPath( startLink );
startLink.addLinkHolder( startPath, null );
if ( wp != null ) wp.radius = 0.1;
if ( wp != null ) wp.radius = 5.;
return routingContext.createPath( startPath, link, null, guideTrack != null );
}
@ -1064,7 +1064,7 @@ public class RoutingEngine extends Thread
{
if ( isFinalLink )
{
endPos.radius = 0.1;
endPos.radius = 5.0;
routingContext.setWaypoint( endPos, true );
}
OsmPath testPath = routingContext.createPath( otherPath, link, refTrack, guideTrack != null );