README
compute-db-station-weight
Estimate the weight of a Deutsche Bahn station using departures. A small wrapper around hafas-estimate-station-weight.
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.