compute-db-station-weight

4.0.0 • Public • Published

compute-db-station-weight

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

npm version ISC-licensed support me via GitHub Sponsors chat with me on Twitter

Installing

npm install compute-db-station-weight

Usage

import {computeWeight} = require('compute-db-station-weight')

const leipzigHbf = '8010205'

console.log(await computeWeight(leipzigHbf))
// 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.

/compute-db-station-weight/

    Package Sidebar

    Install

    npm i compute-db-station-weight

    Weekly Downloads

    13

    Version

    4.0.0

    License

    ISC

    Unpacked Size

    3.92 kB

    Total Files

    6

    Last publish

    Collaborators

    • derhuerst