{"id":15640344,"url":"https://github.com/danburzo/every-street","last_synced_at":"2025-10-08T07:31:53.073Z","repository":{"id":25443888,"uuid":"28873807","full_name":"danburzo/every-street","owner":"danburzo","description":"Drawing every street in Romania using OpenStreetMap data, Node.js and SVG","archived":false,"fork":false,"pushed_at":"2018-06-26T15:07:55.000Z","size":644,"stargazers_count":80,"open_issues_count":5,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-25T05:51:07.898Z","etag":null,"topics":["cartography","openstreetmap","openstreetmap-data","osm","romania","svg"],"latest_commit_sha":null,"homepage":"http://danburzo.ro/every-street","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danburzo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-06T17:10:27.000Z","updated_at":"2025-02-19T06:07:01.000Z","dependencies_parsed_at":"2022-08-03T15:11:08.293Z","dependency_job_id":null,"html_url":"https://github.com/danburzo/every-street","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/danburzo%2Fevery-street","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danburzo%2Fevery-street/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danburzo%2Fevery-street/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danburzo%2Fevery-street/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danburzo","download_url":"https://codeload.github.com/danburzo/every-street/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242619122,"owners_count":20159001,"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":["cartography","openstreetmap","openstreetmap-data","osm","romania","svg"],"created_at":"2024-10-03T11:34:30.176Z","updated_at":"2025-10-08T07:31:48.026Z","avatar_url":"https://github.com/danburzo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# every-street\n\nDraw every street in Romania, based on OpenStreetMap data. \n\n![Sample](img/streets.jpg)\n\nRead the article here: [http://danburzo.ro/every-street](http://danburzo.ro/every-street)\n\n## Installing\n\nClone this repository and run `npm install` on it.\n\n## Using\n\nHere's how to create a similar map for any area:\n\n1. Dowload an `.osm.pbf` OpenStreetMap data file for your country/area from [download.geofabrik.de](http://download.geofabrik.de/) and place it into `data/data.osm.pbf`.\n1. `node tools/extract-data.js` to extract node data into `output/nodes.txt` and street data into `output/streets.txt`;\n1. `node tools/load-nodes.js` to load the nodes into a database so they can be looked up;\n1. `node tools/apply-nodes.js` to replace the node IDs in your street file with the actual coordinates of the nodes into `output/streets-with-coordinates.txt`;\n1. `node tools/bbox.js` to compute the bounding box and the aspect ratio for the map area into `output/bbox.json`;\n1. `node tools/map-coords.js` to transform the geographical coordinates to screen coordinates using a Spherical Mercator projection into `output/streets-with-coordinates-mapped.txt`;\n1. `node tools/generate-svg.js` to generate the final SVG.\n\nOr, if you're brave enough, run them all in one fell swoop:\n\n```bash\nnode tools/extract-data.js \u0026\u0026 node tools/load-nodes.js \u0026\u0026 node tools/apply-nodes.js \u0026\u0026 node tools/bbox.js \u0026\u0026 node tools/map-coords.js \u0026\u0026 node tools/generate-svg.js\n```\n\n...and wait... and wait.\n\n### Converting the SVG to PNG\n\nImageMagick has worked for me:\n\n```bash\nconvert -density 900 output/streets.svg output/streets.png\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanburzo%2Fevery-street","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanburzo%2Fevery-street","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanburzo%2Fevery-street/lists"}