{"id":15592196,"url":"https://github.com/derhuerst/db-stations","last_synced_at":"2025-09-25T09:07:14.845Z","repository":{"id":66219465,"uuid":"63649760","full_name":"derhuerst/db-stations","owner":"derhuerst","description":"A list of Deutsche Bahn stations.","archived":false,"fork":false,"pushed_at":"2022-12-27T21:56:07.000Z","size":287,"stargazers_count":29,"open_issues_count":4,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-08-09T04:31:01.277Z","etag":null,"topics":["deutsche-bahn","germany","open-data","transit","transport"],"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/derhuerst.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-07-19T01:37:18.000Z","updated_at":"2025-02-12T04:43:44.000Z","dependencies_parsed_at":"2023-04-21T17:08:09.412Z","dependency_job_id":null,"html_url":"https://github.com/derhuerst/db-stations","commit_stats":{"total_commits":111,"total_committers":3,"mean_commits":37.0,"dds":0.08108108108108103,"last_synced_commit":"1e4d3329a566c3b2923d0b097f3e3b27baaa0928"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/derhuerst/db-stations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fdb-stations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fdb-stations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fdb-stations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fdb-stations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derhuerst","download_url":"https://codeload.github.com/derhuerst/db-stations/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fdb-stations/sbom","scorecard":{"id":335414,"data":{"date":"2025-08-11","repo":{"name":"github.com/derhuerst/db-stations","commit":"1e4d3329a566c3b2923d0b097f3e3b27baaa0928"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license.md:0","Info: FSF or OSI recognized license: ISC License: license.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T04:36:51.862Z","repository_id":66219465,"created_at":"2025-08-18T04:36:51.863Z","updated_at":"2025-08-18T04:36:51.863Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276889090,"owners_count":25722788,"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-25T02:00:09.612Z","response_time":80,"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":["deutsche-bahn","germany","open-data","transit","transport"],"created_at":"2024-10-02T23:58:07.175Z","updated_at":"2025-09-25T09:07:14.827Z","avatar_url":"https://github.com/derhuerst.png","language":"JavaScript","funding_links":["https://github.com/sponsors/derhuerst"],"categories":[],"sub_categories":[],"readme":"# db-stations\n\nA **collection of all stations of [Deutsche Bahn](http://db.de/)**, computed from [open data](https://developer.deutschebahn.com/store/apis/info?name=StaDa-Station_Data\u0026version=v2\u0026provider=DBOpenData).\n\n*Warning*: This module does not contain stations without an [IBNR](https://de.wikipedia.org/wiki/Internationale_Bahnhofsnummer).\n\n[![npm version](https://img.shields.io/npm/v/db-stations.svg)](https://www.npmjs.com/package/db-stations)\n![ISC-licensed](https://img.shields.io/github/license/derhuerst/db-stations.svg)\n[![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst)\n[![chat with me on Twitter](https://img.shields.io/badge/chat%20with%20me-on%20Twitter-1da1f2.svg)](https://twitter.com/derhuerst)\n\n\n## Installing\n\n```shell\nnpm install db-stations\n```\n\n*Note:* This Git repo does not contain the data, but the npm package does.\n\n\n## Usage\n\n`readStations()` returns a [readable stream](https://nodejs.org/api/stream.html#stream_class_stream_readable) in [object mode](https://nodejs.org/api/stream.html#stream_object_mode), emitting [*Friendly Public Transport Format*](https://github.com/public-transport/friendly-public-transport-format) `station` objects.\n\n```js\nimport {readStations} from 'db-stations'\n\nfor await (const station of readStations()) {\n\tconsole.log(station)\n}\n```\n\n```js\n{\n\ttype: 'station',\n\tid: '8000007', // EVA number\n\tril100: 'FALZ', // RIL100/RL100/DS100 code\n\tnr: 133, // DB internal\n\tname: 'Alzey',\n\tweight: 73.1,\n\tlocation: {\n\t\ttype: 'location',\n\t\tlatitude: 49.7502,\n\t\tlongitude: 8.109749\n\t},\n\toperator: {\n\t\ttype: 'operator',\n\t\tid: 'zweckverband-schienenpersonennahverkehr-rheinland-pfalz-sud',\n\t\tname: 'ZPNV Süd'\n\t},\n\taddress: {\n\t\tcity: 'Alzey',\n\t\tzipcode: '55232',\n\t\tstreet: 'Bahnhofstr. 30'\n\t}\n}\n// and a lot more…\n```\n\n---\n\n`readFullStations()` returns a [readable stream](https://nodejs.org/api/stream.html#stream_class_stream_readable) in [object mode](https://nodejs.org/api/stream.html#stream_object_mode), emitting [*Friendly Public Transport Format*](https://github.com/public-transport/friendly-public-transport-format) `station` objects with more information.\n\n```js\nimport {readFullStations} from 'db-stations'\n\nfor await (const station of readFullStations()) {\n\tconsole.log(station)\n}\n```\n\n```js\n{\n\ttype: 'station',\n\tid: '8000007',\n\tadditionalIds: [],\n\tril100: 'FALZ',\n\tnr: 133,\n\tname: 'Alzey',\n\tweight: 73.1,\n\tlocation: {\n\t\ttype: 'location',\n\t\tlatitude: 49.7502,\n\t\tlongitude: 8.109749\n\t},\n\toperator: {\n\t\ttype: 'operator',\n\t\tid: 'zweckverband-schienenpersonennahverkehr-rheinland-pfalz-sud',\n\t\tname: 'ZPNV Süd'\n\t},\n\taddress: {\n\t\tcity: 'Alzey',\n\t\tzipcode: '55232',\n\t\tstreet: 'Bahnhofstr. 30'\n\t},\n\tcategory: 3,\n\tpriceCategory: 3,\n\thasParking: true,\n\thasBicycleParking: true,\n\thasLocalPublicTransport: true,\n\thasPublicFacilities: false,\n\thasLockerSystem: false,\n\thasTaxiRank: true,\n\thasTravelNecessities: false,\n\thasSteplessAccess: 'partial',\n\thasMobilityService: 'no',\n\thasWiFi: false,\n\thasTravelCenter: false,\n\thasRailwayMission: false,\n\thasDBLounge: false,\n\thasLostAndFound: false,\n\thasCarRental: false,\n\tfederalState: 'Rheinland-Pfalz',\n\tregionalbereich: {\n\t\tnumber: 5,\n\t\tname: 'RB Mitte',\n\t\tshortName: 'RB M'\n\t},\n\ttimeTableOffice: {\n\t\temail: 'DBS.Fahrplan.RhldPfalzSaarland@deutschebahn.com',\n\t\tname: 'Bahnhofsmanagement Mainz'\n\t},\n\tszentrale: {\n\t\tnumber: 24,\n\t\tpublicPhoneNumber: '06131/151055',\n\t\tname: 'Mainz Hbf'\n\t},\n\tstationManagement: {\n\t\tnumber: 184,\n\t\tname: 'Mainz'\n\t},\n\tril100Identifiers: [ {\n\t\trilIdentifier: 'FALZ',\n\t\tisMain: true,\n\t\thasSteamPermission: true,\n\t\tgeographicCoordinates: {\n\t\t\ttype: 'Point',\n\t\t\tcoordinates: [\n\t\t\t\t8.109684725,\n\t\t\t\t49.750267695\n\t\t\t]\n\t\t}\n\t} ]\n}\n```\n\n\n## Related\n\n- [`db-stations-autocomplete`](https://github.com/derhuerst/db-stations-autocomplete#db-stations-autocomplete) – Search for stations of DB (data from DB station API).\n- [`db-hafas-stations`](https://github.com/derhuerst/db-hafas-stations#db-hafas-stations) – A list of DB stations, taken from HAFAS.\n- [`db-hafas-stations-autocomplete`](https://github.com/derhuerst/db-hafas-stations-autocomplete#db-stations-autocomplete) – Search for stations of DB (data from HAFAS).\n\n\n## Contributing\n\nIf you **have a question**, **found a bug** or want to **propose a feature**, have a look at [the issues page](https://github.com/derhuerst/db-stations/issues).\n\n\n## Data License\n\nThe generated data in [`data.ndjson`](data.ndjson) has originally [been](http://data.deutschebahn.com/dataset/data-stationsdaten) [published](http://data.deutschebahn.com/dataset/data-haltestellen) under [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/) by *Deutsche Bahn (DB)*.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fdb-stations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderhuerst%2Fdb-stations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fdb-stations/lists"}