https://github.com/derhuerst/vbb-short-station-name
Remove noise from VBB station names.
https://github.com/derhuerst/vbb-short-station-name
berlin bvg transit transport vbb
Last synced: 4 months ago
JSON representation
Remove noise from VBB station names.
- Host: GitHub
- URL: https://github.com/derhuerst/vbb-short-station-name
- Owner: derhuerst
- License: isc
- Created: 2016-05-15T18:51:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-03T15:54:21.000Z (about 5 years ago)
- Last Synced: 2025-02-08T02:18:02.732Z (4 months ago)
- Topics: berlin, bvg, transit, transport, vbb
- Language: JavaScript
- Homepage: https://github.com/derhuerst/vbb-short-station-name
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# vbb-short-station-name
**Removes stuff like " (Berlin)" from station names.** Shortens "strasse" to "str.".
- `S+U Foobar Bhf` -> `S+U Foobar`
- `S+U Foo Bar (Berlin)` -> `S+U Foo Bar`
- `S Foo-Straße` -> `S Foo-Str.`
- `S Foostrasse` -> `S Foostr.`[](https://www.npmjs.com/package/vbb-short-station-name)
[](https://travis-ci.org/derhuerst/vbb-short-station-name)
[](https://david-dm.org/derhuerst/vbb-short-station-name)
[](https://david-dm.org/derhuerst/vbb-short-station-name#info=devDependencies)

[](https://gitter.im/derhuerst/vbb-rest)
[](https://patreon.com/derhuerst)## Installing
```shell
npm install vbb-short-station-name
```## Usage
```js
const shorten = require('vbb-short-station-name')
shorten('S Südkreuz Bhf (Berlin)') // -> 'S Südkreuz'
```## Contributing
If 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-short-station-name/issues).