Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

mapbox/osm-coverage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compute Road Coverage in OpenStreetMap

A TileReduce processor for calculating OpenStreetMap mileage by country using OSM QA Tiles.

See How Complete is OpenStreetMap?.

# Usage in short (more command options below)
npm install
node download.js --all
node index.js > output.json

Installation

npm install

Downloading data

osm-coverage requires two data sources

  • Country boundaries
  • OSM QA Tiles

All sources

Both sources can be conveniently downloaded using the download.js script in this repo.

node download.js --all

Only country boundaries

node download.js --countries

This will automatically download and convert the Natural Earth 10m Countries dataset.

osm qa tiles

OSM QA tiles are very large - about 18 GB.

node download.js --osm

If you wish to download QA tiles yourself:

  • Download OSM QA tiles
  • Use gunzip or any other archiving tool that can expand .gz files to expand OSM QA tiles

Running

When executing the TileReduce task, you may provide a bounding box to select tiles. For example:

node index.js --area=[-77.12,38.79,-76.9,39] > output.json

If no bounding box is provided, osm-coverage will run for the whole world.

About

Compute Road Coverage in OpenStreetMap

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •