Skip to content

juliuste/vbb-fare-zone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Fetch fare zone information for given VBB stations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published