TypeScript
TypeScript 2.0 type definition was added to the DefinitelyTyped repository.
npm install --save @types/turf
TypeScript
TypeScript 2.0 type definition was added to the DefinitelyTyped repository.
npm install --save @types/turf
module.exports = function(data, tile, writeData, done) { | |
let count = 0 | |
for (const feature of data.osmdata.osm.features) { | |
if (feature.properties['@user'] === 'DenisCarriere') { | |
if (feature.properties.building) count += 1 | |
} | |
} | |
done(null, count) | |
} |