aboutsummaryrefslogtreecommitdiff
path: root/lib/filterOSM.js
blob: 0a22b8bbb25e7f23c4a621a36a9f3c611577f0f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module.exports = (feature, options) => {

  // skip any addresses without a housenumber
  if (
    !('addr:housenumber' in feature.properties)
  ) {
    if (options && options.debug) {
      console.log(`PFI ${feature.properties._pfi} has no addr:housenumber, filtering`)
    }
    return false
  }

  return true
}