vbb-fare-zones

1.4.2 • Public • Published

vbb-fare-zones

All VBB stations and their fare zones. Other cities than Berlin are still missing.

This list is generated from vbb-stations. The build script uses shapefiles, and queries tickets from each station to Berlin as a fallback. Actually, information like this should be open data published by VBB.

npm version build status ISC-licensed chat on gitter support me on Patreon

Installing

npm install vbb-fare-zones

Usage

The npm package contains a file for each zone. Each file contains an array of station IDs.

To get stations of a single zone, require the corresponding file:

const insideA = require('vbb-fare-zones/a.json')
 
console.log(insideA)

To get all zones, require the whole module:

const {A, B, C} = require('vbb-fare-zones')
 
console.log(A, B, C)

Related

  • vbb-fare-zone – Fetch fare zone information for given VBB stations

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.

Package Sidebar

Install

npm i vbb-fare-zones

Weekly Downloads

1

Version

1.4.2

License

ISC

Unpacked Size

77.7 kB

Total Files

7

Last publish

Collaborators

  • derhuerst