fixed routing glitch at final segment
This commit is contained in:
parent
307a50b840
commit
20e1d5aabb
1 changed files with 2 additions and 2 deletions
|
@ -742,7 +742,7 @@ public class RoutingEngine extends Thread
|
||||||
OsmPath startPath = routingContext.createPath( startLink );
|
OsmPath startPath = routingContext.createPath( startLink );
|
||||||
startLink.addLinkHolder( startPath, null );
|
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 );
|
return routingContext.createPath( startPath, link, null, guideTrack != null );
|
||||||
}
|
}
|
||||||
|
@ -1064,7 +1064,7 @@ public class RoutingEngine extends Thread
|
||||||
{
|
{
|
||||||
if ( isFinalLink )
|
if ( isFinalLink )
|
||||||
{
|
{
|
||||||
endPos.radius = 0.1;
|
endPos.radius = 5.0;
|
||||||
routingContext.setWaypoint( endPos, true );
|
routingContext.setWaypoint( endPos, true );
|
||||||
}
|
}
|
||||||
OsmPath testPath = routingContext.createPath( otherPath, link, refTrack, guideTrack != null );
|
OsmPath testPath = routingContext.createPath( otherPath, link, refTrack, guideTrack != null );
|
||||||
|
|
Loading…
Reference in a new issue