node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »

osmlint

OSM Lint

Work in progress and changing fast.

Validate OpenStreetMap data with OSM QA Tiles. OSM Lint is a selection of validators built with TileReduce for validating OSM QA Tiles. Use from the command line or as a node module.

Installation

npm install -g osmlint

Usage

Command line

osmlint bridgeonnode --bbox="[7.4, 43.7, 7.4, 43.7]" --zoom=12 osm.mbtiles

Javascript

// Outputs nodes with bridge tags to stdout
require('osmlint').bridgeOnNode({bbox: [-122.1, 36.9, -121.9, 37.0], zoom: 12}, './osm.mbtiles', function() {
    console.log('done');
});

Available validators

See validators.

Development

git clone https://github.com/osmlab/osmlint.git --depth=1
cd osmlint
npm install