aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/filterOSM.js7
-rw-r--r--lib/toOSM.js4
2 files changed, 3 insertions, 8 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
}
diff --git a/lib/toOSM.js b/lib/toOSM.js
index 2a5c75c..95c387f 100644
--- a/lib/toOSM.js
+++ b/lib/toOSM.js
@@ -119,10 +119,6 @@ module.exports = (sourceFeature, options) => {
}
*/
- if (sourceProperties.BUILDING) {
- outputProperties['addr:housename'] = sourceProperties.BUILDING
- }
-
// house_*
const house_1 = [
sourceProperties.HSE_PREF1,