# parse-vbb-station-name

> Parse VBB stop/station names.

Latest version **2.1.3** (published 2026-05-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install parse-vbb-station-name
pnpm add parse-vbb-station-name
yarn add parse-vbb-station-name
bun add parse-vbb-station-name
```

## Health

**Score 45/100 (D)** — status: active.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 2.1.3 |
| Published | 2026-05-11 |
| First published | 2021-04-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12 |
| Dependencies | 4 |
| Unpacked size | 33.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jannis R |
| Maintainers | derhuerst |
| Keywords | vbb, stops, stations, parse, parser |

## Links

- npm: https://www.npmjs.com/package/parse-vbb-station-name
- Repository: https://github.com/derhuerst/parse-vbb-station-name
- Issues: https://github.com/derhuerst/parse-vbb-station-name/issues
- npm.io page: https://npm.io/package/parse-vbb-station-name

## Dependencies (4)

- [moo](https://npm.io/package/moo.md) ^0.5.1
- [nearley](https://npm.io/package/nearley.md) ^2.20.1
- [escape-string-regexp](https://npm.io/package/escape-string-regexp.md) ^4.0.0
- [german-license-plate-prefixes](https://npm.io/package/german-license-plate-prefixes.md) ^2.15.0

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 2.1.3 (latest) — 2026-05-11
- 2.1.2 — 2022-04-05
- 2.1.1 — 2021-09-07
- 2.1.0 — 2021-09-06
- 2.0.2 — 2021-09-06
- 2.0.1 — 2021-06-01
- 2.0.0 — 2021-04-03

## README

# parse-vbb-station-name

Station 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**.

[![npm version](https://img.shields.io/npm/v/parse-vbb-station-name.svg)](https://www.npmjs.com/package/parse-vbb-station-name)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/parse-vbb-station-name.svg)
![minimum Node.js version](https://img.shields.io/node/v/parse-vbb-station-name.svg)
[![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst)
[![chat with me on Twitter](https://img.shields.io/badge/chat%20with%20me-on%20Twitter-1da1f2.svg)](https://twitter.com/derhuerst)


## Installing

```shell
npm install parse-vbb-station-name
```


## Usage

```js
const parse = require('parse-vbb-station-name')

console.log(parse('S+U Neukölln (Berlin) [U7]')) // 900078272
```

```js
{
	sbahnUbahn: {type: 'sbahnUbahn', text: 'S+U', offset: 0},
	name: {type: 'text', text: 'Neukölln', offset: 4},
	differentiators: [
		{type: 'differentiator', text: 'Berlin', offset: 14},
	],
	part: [
		{type: 'line', text: 'U7', offset: 23},
	],
}
```

```js
console.log(parse('Eggersdorf (Strausberg), Schule')) // 900320601
```

```js
{
	name: {type: 'text', text: 'Schule', offset: 25},
	group: {
		type: 'text',
		offset: 0,
		text: 'Eggersdorf',
		differentiators: [
			{type: 'differentiator', text: 'Strausberg', offset: 12},
		],
	},
}
```

```js
console.log(parse('Abzw. n Schossin, Warsow b Schwerin (Meckl)')) // 900552438
```

```js
{
	name: {type: 'text', text: 'Abzw. n Schossin', offset: 0},
	group: {
		type: 'text',
		offset: 18,
		text: 'Warsow',
		differentiators: [
			{
				type: 'differentiator',
				offset: 25,
				text: 'b Schwerin',
				raw: {type: 'differentiator', text: 'Schwerin', offset: 27},
			},
			{type: 'differentiator', text: 'Meckl', offset: 37},
		],
	},
}
```


## Contributing

If 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).

---
_Source: https://npm.io/package/parse-vbb-station-name · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
