From b0e7b9eb118cbbc019cd210b24392efa5e5908fa Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Thu, 27 May 2021 12:31:52 +1000 Subject: clean conflate --- bin/conflate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/conflate.js') 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'] -- cgit v1.2.3