From ecd63cdad2e632d5b471adcdaa65b6b09c3e543f Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 2 Mar 2018 17:27:57 -0500 Subject: [PATCH] Use `maxDistance` passed in to `osmIntersection()` in turn search (closes #4844) The maxDistance was previously hardcoded to 30 meters. Now we pass it in as a parameter when creating the intersection. But we need to honor that same maxDistance later when walking the graph to find turns from. --- modules/osm/intersection.js | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/osm/intersection.js b/modules/osm/intersection.js index 17c42beb2..4b6a3cf24 100644 --- a/modules/osm/intersection.js +++ b/modules/osm/intersection.js @@ -387,7 +387,6 @@ export function osmIntersection(graph, startVertexId, maxDistance) { // maxViaWay=1 from-*-via-*-to (1 via max) // maxViaWay=2 from-*-via-*-via-*-to (2 vias max) var maxPathLength = (maxViaWay * 2) + 3; - var maxDistance = 30; // meters var turns = []; step(start);