{"id":17369790,"url":"https://github.com/juliuste/zhv-de","last_synced_at":"2026-01-06T20:48:08.041Z","repository":{"id":57405964,"uuid":"171451752","full_name":"juliuste/zhv-de","owner":"juliuste","description":"Lets you fetch the most up-to-date release of the german central public transport stop registry (Zentrales Haltestellenverzeichnis, ZHV).","archived":false,"fork":false,"pushed_at":"2024-06-09T06:13:21.000Z","size":116,"stargazers_count":1,"open_issues_count":22,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T16:55:45.854Z","etag":null,"topics":["library","public-transport"],"latest_commit_sha":null,"homepage":null,"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/juliuste.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-19T10:14:07.000Z","updated_at":"2020-10-10T16:54:54.000Z","dependencies_parsed_at":"2023-12-27T00:12:34.754Z","dependency_job_id":"75a29751-a7ee-4ce5-ae86-cfb6f06e9813","html_url":"https://github.com/juliuste/zhv-de","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"8cf366ac709bbcd086339bdf265d8dc2dcdf741c"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Fzhv-de","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Fzhv-de/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Fzhv-de/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Fzhv-de/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliuste","download_url":"https://codeload.github.com/juliuste/zhv-de/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245924500,"owners_count":20694728,"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":["library","public-transport"],"created_at":"2024-10-16T00:13:53.381Z","updated_at":"2026-01-06T20:48:08.007Z","avatar_url":"https://github.com/juliuste.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zhv-de\n\nFetch the most up-to-date release of the german central public transport stop registry (Zentrales Haltestellenverzeichnis, ZHV - available on [opendata-oepnv.de](https://www.opendata-oepnv.de/ht/de/organisation/delfi/startseite?tx_vrrkit_view%5Bdataset_name%5D=deutschlandweite-haltestellendaten\u0026tx_vrrkit_view%5Baction%5D=details\u0026tx_vrrkit_view%5Bcontroller%5D=View) as well as [zhv.wvigmbh.de](https://zhv.wvigmbh.de/)). Sadly, there is no static endpoint from which you could obtain this data (yet), you can use this small tool until they provide one.\n\n[![npm version](https://img.shields.io/npm/v/zhv-de.svg)](https://www.npmjs.com/package/zhv-de)\n[![Build Status](https://travis-ci.org/juliuste/zhv-de.svg?branch=master)](https://travis-ci.org/juliuste/zhv-de)\n[![license](https://img.shields.io/github/license/juliuste/zhv-de.svg?style=flat)](license)\n\n## Installation\n\n```shell\nnpm install zhv-de\n```\n\n## Usage\n\nThe module exposes a single method which takes `user` and `password` (you can obtain those credentials for free [at the opendata-oepnv.de website](https://www.opendata-oepnv.de/ht/de/standards/registrierung)) as arguments and returns a [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/promise) that will resolve in an object-mode stream of stops.\n\n```js\nconst zhv = require('zhv-de')\nconst user = '\u003cyour-opendata-oepnv.de-user-email\u003e'\nconst password = '\u003cyour-opendata-oepnv.de-password\u003e'\n\nconst ndjson = require('ndjson') // we use this to transform objects to JSON to pipe to stdout\n\nzhv(user, password)\n.then(dataStream =\u003e dataStream.pipe(ndjson.stringify()).pipe(process.stdout))\n.catch(console.error)\n```\n\nThe objects emitted by the stream will look as follows (note that the keys start with a lowercase character instead of the uppercase variant used on the ZHV website):\n\n```js\n{\n\tseqNo: '0',\n\ttype: 'S',\n\tdHID: 'de:07334:1714',\n\tparent: 'de:07334:1714',\n\tname: 'Wörth Alte Bahnmeisterei',\n\tlatitude: 49.048672,\n\tlongitude: 8.266324,\n\tmunicipalityCode: '07334501',\n\tmunicipality: 'Wörth am Rhein',\n\tdistrictCode: null,\n\tdistrict: null,\n\tcondition: 'Served',\n\tstate: undefined,\n\tdescription: undefined,\n\tauthority: 'NVBW'\n}\n```\n\n## Contributing\n\nIf you found a bug or want to propose a feature, feel free to visit [the issues page](https://github.com/juliuste/zhv-de/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliuste%2Fzhv-de","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliuste%2Fzhv-de","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliuste%2Fzhv-de/lists"}