Skip to content

Instantly share code, notes, and snippets.

@dnomadb
Created February 9, 2015 22:02
Show Gist options
  • Save dnomadb/321c77fe60eb5c3f87ef to your computer and use it in GitHub Desktop.
Save dnomadb/321c77fe60eb5c3f87ef to your computer and use it in GitHub Desktop.
function eat(line, callback) {
try {
var data = JSON.parse(line);
aggregator.dataEater(data.key, data.attributes, 5, function(err, GeoJSON) {
if (err) throw err;
callback(GeoJSON)
});
} catch(err) { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment