normalize-vbb-station-name-for-search

1.0.1 • Public • Published

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 suedkreuz
  • S Beusselstr -> sbahn beussel strasse
  • S+U Warschauer Str. -> s u warschauer strasse
  • Charité - Campus Benjamin Franklin (Berlin) -> charite campus benjamin franklin

npm version ISC-licensed minimum Node.js version support me via GitHub Sponsors chat with me on Twitter

Installing

npm install normalize-vbb-station-name-for-search

Usage

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.

/normalize-vbb-station-name-for-search/

    Package Sidebar

    Install

    npm i normalize-vbb-station-name-for-search

    Weekly Downloads

    15

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    5.21 kB

    Total Files

    4

    Last publish

    Collaborators

    • derhuerst