{"id":30858718,"url":"https://github.com/urbica/osm-extractor","last_synced_at":"2025-10-21T07:24:22.691Z","repository":{"id":32997148,"uuid":"148625739","full_name":"urbica/osm-extractor","owner":"urbica","description":"Extracts data from OpenStreetMap","archived":false,"fork":false,"pushed_at":"2023-02-28T02:27:58.000Z","size":835,"stargazers_count":16,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T09:27:18.526Z","etag":null,"topics":["extracts","nominatim","openstreetmap","osm","overpass-api","overpass-turbo"],"latest_commit_sha":null,"homepage":null,"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/urbica.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":"2018-09-13T11:06:51.000Z","updated_at":"2024-09-29T02:56:13.000Z","dependencies_parsed_at":"2023-01-14T22:58:32.213Z","dependency_job_id":null,"html_url":"https://github.com/urbica/osm-extractor","commit_stats":null,"previous_names":["stepankuzmin/osm-extractor"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/urbica/osm-extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbica%2Fosm-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbica%2Fosm-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbica%2Fosm-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbica%2Fosm-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/urbica","download_url":"https://codeload.github.com/urbica/osm-extractor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbica%2Fosm-extractor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274046016,"owners_count":25212985,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["extracts","nominatim","openstreetmap","osm","overpass-api","overpass-turbo"],"created_at":"2025-09-07T14:16:46.830Z","updated_at":"2025-10-21T07:24:17.660Z","avatar_url":"https://github.com/urbica.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# osm-extractor\n\n[![Build Status](https://travis-ci.org/urbica/osm-extractor.svg?branch=master)](https://travis-ci.org/urbica/osm-extractor)\n\nExtracts data from [OpenStreetMap](https://www.openstreetmap.org) using [Overpass API](https://overpass-turbo.eu/).\n\n\u003cimg align=\"center\" src=\"https://raw.githubusercontent.com/urbica/osm-extractor/master/Overpass_API.png\" /\u003e\n\n## Installation\n\n```shell\nnpm i osm-extractor\n```\n\n## Usage\n\nGeocode and extract area using [Overpass API](https://overpass-turbo.eu/)\n\n```js\nconst fs = require(\"fs\");\nconst { extractWithGeocode } = require(\"osm-extractor\");\n\nextractWithGeocode(\"Liechtenstein\").then(data =\u003e\n  data.pipe(fs.createWriteStream(\"data.osm\"))\n);\n```\n\nExtract OpenStreetMap data from Overpass using [BBox](https://wiki.openstreetmap.org/wiki/Bounding_Box)\n\n```js\nconst fs = require(\"fs\");\nconst { extractWithBBox } = require(\"osm-extractor\");\n\nextractWithBBox([11.5, 48.1, 11.6, 48.2]).then(data =\u003e\n  data.pipe(fs.createWriteStream(\"data.osm\"))\n);\n```\n\nExtract from [Overpass API](https://overpass-turbo.eu/) using [Overpass QL](https://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide)\n\n```js\nconst fs = require(\"fs\");\nconst { extractWithQuery } = require(\"osm-extractor\");\n\nconst query = \"node(50.745,7.17,50.75,7.18);out;\";\nextractWithQuery(query).then(data =\u003e\n  data.pipe(fs.createWriteStream(\"data.osm\"))\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbica%2Fosm-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furbica%2Fosm-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbica%2Fosm-extractor/lists"}