aboutsummaryrefslogtreecommitdiff
path: root/bin/complex.js
diff options
context:
space:
mode:
Diffstat (limited to 'bin/complex.js')
-rwxr-xr-xbin/complex.js2
1 files changed, 1 insertions, 1 deletions
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 {