Skip to content

Instantly share code, notes, and snippets.

@jonahadkins
Created April 27, 2016 20:30
Show Gist options
  • Save jonahadkins/5f7cb5c1ca6a1bd3732820f9dca53866 to your computer and use it in GitHub Desktop.
Save jonahadkins/5f7cb5c1ca6a1bd3732820f9dca53866 to your computer and use it in GitHub Desktop.
'use strict';
module.exports = function(data, tile, writeData, done) {
var count = 0;
if (data.osm.roads) count += data.osm.roads.length;
if (data.osm.buildings) count += data.osm.buildings.length;
console.log(data.osm.roads);
console.log(data.osm.buildings);
done(null, count);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment