{"id":15592423,"url":"https://github.com/derhuerst/vbb-line-variant-score","last_synced_at":"2026-03-05T14:30:16.514Z","repository":{"id":66219617,"uuid":"132035827","full_name":"derhuerst/vbb-line-variant-score","owner":"derhuerst","description":"Identify the canonical variants of a VBB line.","archived":false,"fork":false,"pushed_at":"2018-05-05T10:21:58.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-07T19:12:18.250Z","etag":null,"topics":["berlin","bvg","public-transport","transit","vbb"],"latest_commit_sha":null,"homepage":"https://github.com/derhuerst/vbb-line-variant-score#vbb-line-variant-score","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":"2018-05-03T18:39:36.000Z","updated_at":"2018-05-05T10:22:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"ef534d46-5524-49cf-acf6-22c3698a00c0","html_url":"https://github.com/derhuerst/vbb-line-variant-score","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/derhuerst%2Fvbb-line-variant-score","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-line-variant-score/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-line-variant-score/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-line-variant-score/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derhuerst","download_url":"https://codeload.github.com/derhuerst/vbb-line-variant-score/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239890113,"owners_count":19713909,"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","public-transport","transit","vbb"],"created_at":"2024-10-03T00:00:37.944Z","updated_at":"2026-03-05T14:30:16.424Z","avatar_url":"https://github.com/derhuerst.png","language":"JavaScript","funding_links":["https://patreon.com/derhuerst"],"categories":[],"sub_categories":[],"readme":"# vbb-line-variant-score\n\n**Identify the canonical variants of a VBB line.**\n\n[![npm version](https://img.shields.io/npm/v/vbb-line-variant-score.svg)](https://www.npmjs.com/package/vbb-line-variant-score)\n[![build status](https://api.travis-ci.org/derhuerst/vbb-line-variant-score.svg?branch=master)](https://travis-ci.org/derhuerst/vbb-line-variant-score)\n![ISC-licensed](https://img.shields.io/github/license/derhuerst/vbb-line-variant-score.svg)\n[![chat with me on Gitter](https://img.shields.io/badge/chat%20with%20me-on%20gitter-512e92.svg)](https://gitter.im/derhuerst)\n[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)\n\n\n## Installing\n\n```shell\nnpm install vbb-line-variant-score\n```\n\n\n## Usage\n\n```js\nconst readLines = require('vbb-lines')\n\nreadLines()\n.on('data', (line) =\u003e {\n\tconst computeLineVariantScore = create(line.variants)\n\n\tfor (let variant of line.variants) {\n\t\tconsole.log(\n\t\t\tcomputeLineVariantScore(variant),\n\t\t\tvariant\n\t\t)\n\t}\n})\n```\n\nMost VBB lines have 1 \"canonical\" set of stations, hence 2 \"canonical\" variants. They will be the 2 variants with the highest score.\n\n\n## Contributing\n\nIf you have a question or have difficulties using `vbb-line-variant-score`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/vbb-line-variant-score/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fvbb-line-variant-score","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderhuerst%2Fvbb-line-variant-score","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fvbb-line-variant-score/lists"}