{"id":15592170,"url":"https://github.com/derhuerst/vbb-lines","last_synced_at":"2025-06-25T15:03:54.797Z","repository":{"id":57390989,"uuid":"42460386","full_name":"derhuerst/vbb-lines","owner":"derhuerst","description":"VBB lines and their stations.","archived":false,"fork":false,"pushed_at":"2024-01-17T20:33:45.000Z","size":349,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-25T00:30:13.266Z","etag":null,"topics":["berlin","bvg","transit","transport","vbb"],"latest_commit_sha":null,"homepage":"https://github.com/derhuerst/vbb-lines","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-14T16:10:45.000Z","updated_at":"2024-10-30T07:15:46.000Z","dependencies_parsed_at":"2024-06-20T22:03:01.294Z","dependency_job_id":"069cb3cb-061c-43cc-8985-6e21d71a8ed8","html_url":"https://github.com/derhuerst/vbb-lines","commit_stats":{"total_commits":90,"total_committers":3,"mean_commits":30.0,"dds":0.0888888888888889,"last_synced_commit":"3307dba19e947a9260f9534ef34bb3ec6dfd354b"},"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-lines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-lines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-lines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-lines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derhuerst","download_url":"https://codeload.github.com/derhuerst/vbb-lines/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232925635,"owners_count":18597713,"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":["berlin","bvg","transit","transport","vbb"],"created_at":"2024-10-02T23:56:34.112Z","updated_at":"2025-04-15T05:06:04.240Z","avatar_url":"https://github.com/derhuerst.png","language":"JavaScript","funding_links":["https://github.com/sponsors/derhuerst"],"categories":[],"sub_categories":[],"readme":"# vbb-lines 🚏\n\nA **collection of all lines (and their stations) of the [Berlin Brandenburg public transport service (VBB)](http://www.vbb.de/)**, computed from [open](https://daten.berlin.de/datensaetze/vbb-fahrplandaten-gtfs) [GTFS](https://developers.google.com/transit/gtfs/) [data](https://vbb-gtfs.jannisr.de/).\n\n[![npm version](https://img.shields.io/npm/v/vbb-lines.svg)](https://www.npmjs.com/package/vbb-lines)\n![ISC-licensed](https://img.shields.io/github/license/derhuerst/vbb-lines.svg)\n![minimum Node.js version](https://img.shields.io/node/v/vbb-lines.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 via Matrix](https://img.shields.io/badge/chat%20with%20me-via%20Matrix-000000.svg)](https://matrix.to/#/@derhuerst:matrix.org)\n\n\n## Installing\n\n```shell\nnpm install vbb-lines\n```\n\n\n## Usage\n\nThe [npm package](https://npmjs.com/vbb-lines) contains data in the [*Friendly Public Transport Format*](https://github.com/public-transport/friendly-public-transport-format).\n\n```js\n{\n\ttype: 'line',\n\tid: '17519_400',\n\tname: 'U55',\n\toperator: '796',\n\tmode: 'train',\n\tproduct: 'subway',\n\tvariants: [\n\t\t['070201054601', '070201054501', '070201054401'], // station ids\n\t\t['070201054401', '070201054501', '070201054601']\n\t]\n}\n```\n\n```js\nconst lines = require('vbb-lines')\n\nlines(true, '15296_700').then(console.log) // query a single line\nlines({mode: 'bus'}).on('data', console.log) // filter lines\nlines('all').on('data', console.log)\n```\n\nIf you want the data as JSON, use `require('vbb-lines/data.json')`.\n\n\n## API\n\n`lines([promised], [pattern])`\n\nIf `promised` is `true`, a [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) will be returned, resolving with an array of results.\n\nOtherwise, a [stream](https://nodejs.org/api/stream.html#stream_class_stream_readable) in [object mode](https://nodejs.org/api/stream.html#stream_object_mode) will be returned, emitting one line at a time.\n\n`pattern` can be one of the following:\n\n- a line ID, like `'15296_700'`\n- `'all'`\n- an object like `{mode: 'bus', agencyId: '47'}`, with each property being mandatory\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/vbb-lines/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fvbb-lines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderhuerst%2Fvbb-lines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fvbb-lines/lists"}