Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 680 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 680 Bytes

node-osm-pbfreader Build Status

A node.js module for working with OpenStreetMap PBF files.

Usage

var PbfReader = require('node-osm-pbfreader');

var reader = new PbfReader();

reader.on('header', function (header) {
    console.log('header: ' + header);
});
reader.on('data', function (data) {
    console.log('data: ' + data);
});
reader.on('end', function () {
    console.log('end');
});
reader.on('error', function (err) {
    console.log('error: ' + err);
});

reader.readFile('austria-latest.osm.pbf');