From 0229d5c4a4574a1c67be79d1780efe594a876e3d Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Wed, 9 Jun 2021 23:48:08 +1000 Subject: fix check if complex/building names are exactly the same in OSM --- bin/complex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/complex.js') diff --git a/bin/complex.js b/bin/complex.js index c8bda5d..b81eefe 100755 --- a/bin/complex.js +++ b/bin/complex.js @@ -170,7 +170,7 @@ pipeline( } if (nearbyMatches.length === 1) { // a single nearby OSM features found with similar name - if (nearbyMatchedFeatures[0].properties.name.toLowerCase === name.toLowerCase()) { + if (nearbyMatchedFeatures[0].properties.name.toLowerCase() === name.toLowerCase()) { // name exactly matched console.log(`Exact match: ${properties.name} = ${nearbyMatchedFeatures[0].properties.name}`) } else { -- cgit v1.2.3