diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-06-09 23:48:08 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-06-09 23:48:08 +1000 |
commit | 0229d5c4a4574a1c67be79d1780efe594a876e3d (patch) | |
tree | b3a9c0dae7afc076c2f8237cc52263f01ae0219f /bin | |
parent | 5d0be0c16a1b0cdd4b67fe23b5be327dedeaba80 (diff) |
fix check if complex/building names are exactly the same in OSM
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/building.js | 2 | ||||
-rwxr-xr-x | bin/complex.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/building.js b/bin/building.js index 966c470..2b18aad 100755 --- a/bin/building.js +++ b/bin/building.js @@ -106,7 +106,7 @@ const conflate = new Transform({ */ 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 { 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 { |