juliuste / vbb-fare-zone

Fetch fare zone information for given VBB stations
MIT License
0 stars 0 forks source link
library public-transport

vbb-fare-zone

Get fare zone information for given VBB stations. Scraper for bvg.de, therefore unstable and not suited for production environments. Actually, information like this should be open data published by VBB.

npm version Build Status Greenkeeper badge dependency status dev dependency status license chat on gitter

Installation

npm install --save vbb-fare-zone

Usage

Takes the VBB station id as a single parameter (only stations, not stops!).

const farezone = require('vbb-fare-zone')

farezone('900000026202').then(console.log) // U Kaiserdamm

Returns a Promise that will resolve in an object which looks as follows:

{
    "id": "5555",
    "name": "Berlin A"
}

Important: Please note that Berlin C is technically not a separate zone. Instead, stations in Berlin C will have zones line Schönefeld or Potsdam AB

See also

Contributing

If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit the issues page.