aboutsummaryrefslogtreecommitdiff
path: root/lib/filterOSM.js
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-05-04 17:48:04 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-05-04 17:48:04 +1000
commit588b35cef949a27fe938e38d7710965405ffdac1 (patch)
tree1e679b3421ef372ea40938562495a0cfe1acf83d /lib/filterOSM.js
parentc44dca4697a768c452a9bf48ef5d9e326dfd652c (diff)
don't include building / property name
Diffstat (limited to 'lib/filterOSM.js')
-rw-r--r--lib/filterOSM.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/filterOSM.js b/lib/filterOSM.js
index e530773..f7f22be 100644
--- a/lib/filterOSM.js
+++ b/lib/filterOSM.js
@@ -1,13 +1,12 @@
module.exports = (feature, options) => {
- // skip any addresses without either a housenumber or housename
+ // skip any addresses without a housenumber
// eg PFI 53396626 has no housenumber
if (
- !('addr:housenumber' in feature.properties) &&
- !('addr:housename' in feature.properties)
+ !('addr:housenumber' in feature.properties)
) {
if (argv.debug) {
- console.log(`PFI ${feature.properties._pfi} has neither a addr:housename or addr:housenumber, filtering`)
+ console.log(`PFI ${feature.properties._pfi} has no addr:housenumber, filtering`)
}
return false
}