Try to find a DB station by its name. Pulls the data from db-stations
.
npm install find-db-station-by-name
const findStation = require('find-db-station-by-name')
findStation('Ahrensfelde') === '8011003' // upper case
findStation('albstadt lautlingen') === '8000475' // spaces vs. dashes
findStation('agathenbrug') === '8000434' // typo
findStation('alt hüttendorf') === '8011011' // umlauts
If you have a question, found a bug or want to propose a feature, have a look at the issues page.