{"id":15593175,"url":"https://github.com/derhuerst/parse-vbb-station-name","last_synced_at":"2025-07-26T20:37:42.704Z","repository":{"id":53162229,"uuid":"54856028","full_name":"derhuerst/parse-vbb-station-name","owner":"derhuerst","description":"Parse VBB stop/station names.","archived":false,"fork":false,"pushed_at":"2022-04-05T12:38:38.000Z","size":2740,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T01:06:39.802Z","etag":null,"topics":["berlin","bvg","public-transport","search","transit","vbb"],"latest_commit_sha":null,"homepage":"https://github.com/derhuerst/parse-vbb-station-name#parse-vbb-station-name","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}},"created_at":"2016-03-28T01:11:00.000Z","updated_at":"2021-10-03T16:06:36.000Z","dependencies_parsed_at":"2022-09-19T02:51:19.692Z","dependency_job_id":null,"html_url":"https://github.com/derhuerst/parse-vbb-station-name","commit_stats":null,"previous_names":["derhuerst/vbb-tokenize-station","derhuerst/tokenize-vbb-station-name"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/derhuerst/parse-vbb-station-name","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fparse-vbb-station-name","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fparse-vbb-station-name/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fparse-vbb-station-name/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fparse-vbb-station-name/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derhuerst","download_url":"https://codeload.github.com/derhuerst/parse-vbb-station-name/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fparse-vbb-station-name/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267229100,"owners_count":24056376,"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-07-26T02:00:08.937Z","response_time":62,"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":["berlin","bvg","public-transport","search","transit","vbb"],"created_at":"2024-10-03T00:05:09.505Z","updated_at":"2025-07-26T20:37:42.658Z","avatar_url":"https://github.com/derhuerst.png","language":"JavaScript","funding_links":["https://github.com/sponsors/derhuerst"],"categories":[],"sub_categories":[],"readme":"# parse-vbb-station-name\n\nStation names in [VBB](https://en.wikipedia.org/wiki/Verkehrsverbund_Berlin-Brandenburg)/[BVG](https://en.wikipedia.org/wiki/Berliner_Verkehrsbetriebe) data are terribly inconsistent, cluttered with abbreviations, phrases to tell identically named places apart, and unhelpful suffixes like `, Bahnhof`. **`parse-vbb-station-name` tries to parse those names into a meaningful structure**.\n\n[![npm version](https://img.shields.io/npm/v/parse-vbb-station-name.svg)](https://www.npmjs.com/package/parse-vbb-station-name)\n![ISC-licensed](https://img.shields.io/github/license/derhuerst/parse-vbb-station-name.svg)\n![minimum Node.js version](https://img.shields.io/node/v/parse-vbb-station-name.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 parse-vbb-station-name\n```\n\n\n## Usage\n\n```js\nconst parse = require('parse-vbb-station-name')\n\nconsole.log(parse('S+U Neukölln (Berlin) [U7]')) // 900078272\n```\n\n```js\n{\n\tsbahnUbahn: {type: 'sbahnUbahn', text: 'S+U', offset: 0},\n\tname: {type: 'text', text: 'Neukölln', offset: 4},\n\tdifferentiators: [\n\t\t{type: 'differentiator', text: 'Berlin', offset: 14},\n\t],\n\tpart: [\n\t\t{type: 'line', text: 'U7', offset: 23},\n\t],\n}\n```\n\n```js\nconsole.log(parse('Eggersdorf (Strausberg), Schule')) // 900320601\n```\n\n```js\n{\n\tname: {type: 'text', text: 'Schule', offset: 25},\n\tgroup: {\n\t\ttype: 'text',\n\t\toffset: 0,\n\t\ttext: 'Eggersdorf',\n\t\tdifferentiators: [\n\t\t\t{type: 'differentiator', text: 'Strausberg', offset: 12},\n\t\t],\n\t},\n}\n```\n\n```js\nconsole.log(parse('Abzw. n Schossin, Warsow b Schwerin (Meckl)')) // 900552438\n```\n\n```js\n{\n\tname: {type: 'text', text: 'Abzw. n Schossin', offset: 0},\n\tgroup: {\n\t\ttype: 'text',\n\t\toffset: 18,\n\t\ttext: 'Warsow',\n\t\tdifferentiators: [\n\t\t\t{\n\t\t\t\ttype: 'differentiator',\n\t\t\t\toffset: 25,\n\t\t\t\ttext: 'b Schwerin',\n\t\t\t\traw: {type: 'differentiator', text: 'Schwerin', offset: 27},\n\t\t\t},\n\t\t\t{type: 'differentiator', text: 'Meckl', offset: 37},\n\t\t],\n\t},\n}\n```\n\n\n## Contributing\n\nIf you have a question or need support using `parse-vbb-station-name`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, use [the issues page](https://github.com/derhuerst/parse-vbb-station-name/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fparse-vbb-station-name","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderhuerst%2Fparse-vbb-station-name","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fparse-vbb-station-name/lists"}