Awesome
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.
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
- vbb-fare-zones - "All VBB stations and their fare zones"
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.