aboutsummaryrefslogtreecommitdiff
path: root/bin/vicmap2osm.js
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-06-08 22:13:02 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-06-08 22:13:02 +1000
commitb516f748d86d4bd2685a5543fa811806e06610ec (patch)
treec437f5e6f9601b29f1e727cd7c9774346e6b55ab /bin/vicmap2osm.js
parentbefb3e39de289c2918e75b43c51eb8d20513e305 (diff)
fix compareSuburbs now addr:suburb not included by default
Diffstat (limited to 'bin/vicmap2osm.js')
-rwxr-xr-xbin/vicmap2osm.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/vicmap2osm.js b/bin/vicmap2osm.js
index dfd1eeb..597043e 100755
--- a/bin/vicmap2osm.js
+++ b/bin/vicmap2osm.js
@@ -20,6 +20,11 @@ const argv = require('yargs/yargs')(process.argv.slice(2))
type: 'boolean',
description: 'Includes _pfi tags to aid debugging'
})
+ .option('preserve-derivable-properties', {
+ type: 'boolean',
+ default: false,
+ description: 'If set, preserves addr:suburb, addr:postcode, addr:state, otherwise omits them'
+ })
.argv
if (argv._.length < 2) {
@@ -52,7 +57,7 @@ const transform = new Transform({
const osm = toOSM(feature, {
tracing: argv.tracing,
/* omit addr:suburb, addr:postcode, addr:state */
- includeDerivableProperties: false
+ includeDerivableProperties: argv.preserveDerivableProperties
})
// some addresses we skip importing into OSM, see README.md#omitted-addresses