This package has been deprecated

Author message:

Deprecated. Use normalize-vbb-station-name-for-search or parse-vbb-station-name instead.

tokenize-vbb-station-name

1.1.0 • Public • Published

tokenize-vbb-station-name

Station names in VBB are terribly inconsistent and user's search queries are not perfect either. This module tries to compensate all the weird edge cases:

  • S Südkreuz Bhf (Berlin) -> sbahn suedkreuz bahnhof berlin
  • S Beusselstr -> sbahn beussel strasse
  • S+U Warschauer Str. -> sbahn ubahn warschauer strasse
  • Charité - Campus Benjamin Franklin (Berlin) -> charite campus benjamin franklin berlin

npm version build status ISC-licensed gitter channel support me on Patreon

Installing

npm install tokenize-vbb-station-name

Usage

const tokenize = require('tokenize-vbb-station-name')
 
tokenize('S+U Warschauer Str.')
.join(' ') // -> 'sbahn ubahn warschauer strasse'

Called with no arguments or an invalid argument, tokenize will return [].

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.

Package Sidebar

Install

npm i tokenize-vbb-station-name

Weekly Downloads

2

Version

1.1.0

License

ISC

Unpacked Size

4.46 kB

Total Files

4

Last publish

Collaborators

  • derhuerst