Make Deutsche Bahn station names search-safe.
The station names from DB are inconsistent and user's search queries are not perfect either. This module tries to compensate edge cases:
Reuth (b Plauen/Vogtl)->reuth bei plauen vogtlandKönigstein (Sächs Schweiz)->koenigstein saechische schweizZwickau (Sachs) Hbf->zwickau sachsen hauptbahnhof
npm install tokenize-db-station-nameconst tokenize = require('tokenize-db-station-name')
tokenize('Königstein (Sächs Schweiz)')
.join(' ') // -> 'koenigstein saechsische schweiz'db-clean-station-name– Remove noise and fix common typographic errors in Deutsche Bahn (German railways) station names.
If you have a question, found a bug or want to propose a feature, have a look at the issues page.