aboutsummaryrefslogtreecommitdiff
path: root/bin/conflate.js
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-05-27 12:31:52 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-05-27 12:31:52 +1000
commitb0e7b9eb118cbbc019cd210b24392efa5e5908fa (patch)
tree4727541351f7070a87c69c918900267655c4ca34 /bin/conflate.js
parent72da1088d0803da3925c55831f0adf7f92e19acf (diff)
clean conflate
Diffstat (limited to 'bin/conflate.js')
-rwxr-xr-xbin/conflate.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/conflate.js b/bin/conflate.js
index 76edeea..c64706f 100755
--- a/bin/conflate.js
+++ b/bin/conflate.js
@@ -1,7 +1,7 @@
#!/usr/bin/env node
/**
- * Prepare import candidates by conflating with existing addresses in OSM
+ * Conflate processed Vicmap addresses with existing addresses in OSM
*/
const fs = require('fs')
@@ -77,7 +77,6 @@ const osmAddrPolygonsByBlock = {
0: [] // this one is for any polygons not within a block
}
-
// find OSM Addresses and store them
// polygons go into a simple array, which later we create a point in polygon index for
// points and lines a simple object index by block id
@@ -160,6 +159,7 @@ const conflate = new Transform({
osmAddrWithinBlock.push(osmAddrPolygonsByBlock[block.id][i])
}
}
+
const matches = osmAddrWithinBlock.filter(osmAddr => {
const osmStreet = osmAddr.properties['addr:street']