Skip to content
VBB stations and their fare zones.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
.editorconfig
.gitignore
.travis.yml
exceptions.js
index.js
license.md
package.json
readme.md
test.js

readme.md

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.

You can’t perform that action at this time.