How to use the pbf2json.createReadStream function in pbf2json

To help you get started, we’ve selected a few pbf2json examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pelias / openstreetmap / stream / pbf.js View on Github external
function createPbfStream(opts){

  var conf = config(opts);

  validatePath( conf.file, 'failed to stat pbf file: ' + conf.file );
  validatePath( conf.leveldb, 'failed to stat leveldb path: ' + conf.leveldb );
  validateTags( conf.tags );

  return pbf2json.createReadStream(conf);
}

pbf2json

Golang osm pbf parser with npm wrapper

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Popular pbf2json functions