/osmlint

an open source suite of validators to understand the quality of OpenStreetMap data, and to identify common geometry and metadata problems at scale.

Primary LanguageJavaScriptISC LicenseISC

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.txt.

Development

git clone https://github.com/osmlab/osmlint.git
cd osmlint
npm install