Fix issue where close nodes validation may not detect issues in some cases

This commit is contained in:
Quincy Morgan
2019-05-02 12:03:09 -07:00
parent 424f6ca72d
commit 752bc72e7c

View File

@@ -32,7 +32,7 @@ export function validationCloseNodes() {
if (!parentWay.tags.highway || !osmRoutableHighwayTagValues[parentWay.tags.highway]) continue;
var lastIndex = parentWay.nodes.length - 1;
for (var j in parentWay.nodes) {
for (var j = 0; j < parentWay.nodes.length; j++) {
if (j !== 0) {
if (parentWay.nodes[j-1] === node.id) {
checkForCloseness(node, context.entity(parentWay.nodes[j]), parentWay);