From b82f38d8e81530ad47af875f91ee54c80a37fdd8 Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Mon, 21 Mar 2022 14:00:52 +1100 Subject: swap to gdb source --- lib/filterSource.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/filterSource.js') diff --git a/lib/filterSource.js b/lib/filterSource.js index af535bf..1527045 100644 --- a/lib/filterSource.js +++ b/lib/filterSource.js @@ -26,8 +26,8 @@ const buildingUnitTypeWhitelist = [ module.exports = (feature) => { // if the address has a building unit type, only allow a few whitelisted types - if ('BLGUNTTYP' in feature.properties && feature.properties.BLGUNTTYP !== null) { - if (buildingUnitTypeWhitelist.includes(feature.properties.BLGUNTTYP)) { + if ('BLG_UNIT_TYPE' in feature.properties && feature.properties.BLG_UNIT_TYPE !== null) { + if (buildingUnitTypeWhitelist.includes(feature.properties.BLG_UNIT_TYPE)) { // building unit type in the whitelist, include feature return true } else { -- cgit v1.2.3