1.4.2 • Published 5 years ago

vbb-fare-zones v1.4.2

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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.

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.1.0

7 years ago