aboutsummaryrefslogtreecommitdiff
path: root/lib/filterOSM.js
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-05-05 15:21:51 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-05-05 15:21:51 +1000
commit43d2090893aeeb8645e0e9c6ca05d5f96e48aae0 (patch)
tree58415e752b5f69087c7ad87d3493a64987222464 /lib/filterOSM.js
parent12e26c30579407c0739fdcb0e5043b208536c8b7 (diff)
clean up debug logging, corner cases, and set addr:unit:prefix
Diffstat (limited to 'lib/filterOSM.js')
-rw-r--r--lib/filterOSM.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/filterOSM.js b/lib/filterOSM.js
index f7f22be..0a22b8b 100644
--- a/lib/filterOSM.js
+++ b/lib/filterOSM.js
@@ -1,11 +1,10 @@
module.exports = (feature, options) => {
// skip any addresses without a housenumber
- // eg PFI 53396626 has no housenumber
if (
!('addr:housenumber' in feature.properties)
) {
- if (argv.debug) {
+ if (options && options.debug) {
console.log(`PFI ${feature.properties._pfi} has no addr:housenumber, filtering`)
}
return false