1.0.1 • Published 4 years ago
normalize-vbb-station-name-for-search v1.0.1
normalize-vbb-station-name-for-search
Station names in VBB/BVG data are terribly inconsistent, cluttered with abbreviations, phrases to tell identically named places apart, and unhelpful suffixes like , Bahnhof.
This package keeps only those parts that are relevant for searching locally, and normalizes umlauts and special characters:
S Südkreuz Bhf (Berlin)->s suedkreuzS Beusselstr->sbahn beussel strasseS+U Warschauer Str.->s u warschauer strasseCharité - Campus Benjamin Franklin (Berlin)->charite campus benjamin franklin
Installing
npm install normalize-vbb-station-name-for-searchUsage
const normalize = require('normalize-vbb-station-name-for-search')
normalize('S+U Warschauer Str.') // 's+u warschauer strasse'Contributing
If you have a question, found a bug or want to propose a feature, have a look at the issues page.