hardcoded waypoint distance to variable

This commit is contained in:
afischerdev 2021-07-30 14:15:12 +02:00
parent 1886ef1f17
commit 8e008a8d66
3 changed files with 5 additions and 2 deletions

View file

@ -338,7 +338,7 @@ public final class NodesCache
public void matchWaypointsToNodes( List<MatchedWaypoint> unmatchedWaypoints, double maxDistance, OsmNodePairSet islandNodePairs )
{
waypointMatcher = new WaypointMatcherImpl( unmatchedWaypoints, 250., islandNodePairs );
waypointMatcher = new WaypointMatcherImpl( unmatchedWaypoints, maxDistance, islandNodePairs );
for( MatchedWaypoint mwp : unmatchedWaypoints )
{
preloadPosition( mwp.waypoint );