osm-object-stream

1.0.3 • Public • Published

osm-object-stream

Node.js module for a stream of osc or osm files (OpenStreetMap change file), parsing the given XML, and writing objects representing OSM entities

Usage Example

const OsmObjectStream = require('osm-object-stream');
const fs = require('fs');
 
const osmFileStream = fs.createReadStream('osm/file/path');
const osmObjectStream = new OsmObjectStream();
 
osmFileStream.pipe(osmObjectStream);
osmObjectStream.on('data', (osmEntitiesBulk) => {
    console.log(osmEntitiesBulk);
});

Package Sidebar

Install

npm i osm-object-stream

Weekly Downloads

5

Version

1.0.3

License

ISC

Unpacked Size

19.3 kB

Total Files

17

Last publish

Collaborators

  • vitalimmm