{"id":13426182,"url":"https://github.com/mapbox/osm-coverage","last_synced_at":"2025-03-15T21:30:45.678Z","repository":{"id":66019141,"uuid":"46819760","full_name":"mapbox/osm-coverage","owner":"mapbox","description":"Compute Road Coverage in OpenStreetMap","archived":false,"fork":false,"pushed_at":"2018-07-27T21:14:39.000Z","size":1084,"stargazers_count":21,"open_issues_count":4,"forks_count":6,"subscribers_count":116,"default_branch":"master","last_synced_at":"2024-10-28T04:25:37.956Z","etag":null,"topics":["banished"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mapbox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-11-24T21:30:00.000Z","updated_at":"2023-09-03T10:31:10.000Z","dependencies_parsed_at":"2023-03-03T19:45:22.360Z","dependency_job_id":null,"html_url":"https://github.com/mapbox/osm-coverage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fosm-coverage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fosm-coverage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fosm-coverage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fosm-coverage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mapbox","download_url":"https://codeload.github.com/mapbox/osm-coverage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243792287,"owners_count":20348609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["banished"],"created_at":"2024-07-31T00:01:28.322Z","updated_at":"2025-03-15T21:30:45.327Z","avatar_url":"https://github.com/mapbox.png","language":"JavaScript","readme":"# Compute Road Coverage in OpenStreetMap\n\nA [TileReduce](https://github.com/mapbox/tile-reduce) processor for calculating OpenStreetMap mileage by country using [OSM QA Tiles](http://osmlab.github.io/osm-qa-tiles/).\n\nSee [How Complete is OpenStreetMap?](https://www.mapbox.com/blog/how-complete-is-openstreetmap/).\n\n    # Usage in short (more command options below)\n    npm install\n    node download.js --all\n    node index.js \u003e output.json\n\n## Installation\n\n```\nnpm install\n```\n\n## Downloading data\n\n\n`osm-coverage` requires two data sources\n\n- Country boundaries\n- OSM QA Tiles\n\n### All sources\n\nBoth sources can be conveniently downloaded using the `download.js` script in this repo.\n\n```sh\nnode download.js --all\n```\n\n\n### Only country boundaries\n\n```sh\nnode download.js --countries\n```\n\nThis will automatically download and convert the [Natural Earth 10m Countries](http://www.naturalearthdata.com/downloads/10m-cultural-vectors/10m-admin-0-countries/) dataset.\n\n### osm qa tiles\n\nOSM QA tiles are very large - about 18 GB.\n\n```sh\nnode download.js --osm\n```\n\nIf you wish to download QA tiles yourself:\n\n- [Download OSM QA tiles](https://s3.amazonaws.com/mapbox/osm-qa-tiles/latest.planet.mbtiles.gz)\n- Use `gunzip` or any other archiving tool that can expand .gz files to expand OSM QA tiles\n\n\n## Running\n\nWhen executing the TileReduce task, you may provide a bounding box to select tiles. For example:\n\n```\nnode index.js --area=[-77.12,38.79,-76.9,39] \u003e output.json\n```\n\nIf no bounding box is provided, `osm-coverage` will run for the whole world.\n\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapbox%2Fosm-coverage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmapbox%2Fosm-coverage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapbox%2Fosm-coverage/lists"}