Skip to content

cschwarz/node-osm-pbfreader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');

About

A node.js module for working with OpenStreetMap PBF files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published