compute-db-station-weight

Estimate the weight of a DB station using departures.

Usage no npm install needed!

<script type="module">
  import computeDbStationWeight from 'https://cdn.skypack.dev/compute-db-station-weight';
</script>

README

compute-db-station-weight

Estimate the weight of a Deutsche Bahn station using departures. A small wrapper around hafas-estimate-station-weight.

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

Installing

npm install compute-db-station-weight

Usage

const computeWeight = require('compute-db-station-weight')

const leipzigHbf = '8010205'

computeWeight(leipzigHbf)
.then((weight) => {
    console.log('weight of Leipzig Hbf is', weight)
})
weight of Leipzig Hbf is 951.3

Contributing

If you have a question or have difficulties using compute-db-station-weight, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.