Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derhuerst/vbb-fare-zones
VBB stations and their fare zones.
https://github.com/derhuerst/vbb-fare-zones
berlin open-data public-transport transit vbb
Last synced: 6 days ago
JSON representation
VBB stations and their fare zones.
- Host: GitHub
- URL: https://github.com/derhuerst/vbb-fare-zones
- Owner: derhuerst
- License: isc
- Created: 2017-05-17T13:10:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-01T11:01:48.000Z (over 4 years ago)
- Last Synced: 2024-10-03T23:59:03.300Z (about 1 month ago)
- Topics: berlin, open-data, public-transport, transit, vbb
- Language: JavaScript
- Homepage: https://github.com/derhuerst/vbb-fare-zones
- Size: 54.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# vbb-fare-zones
**All VBB stations and their fare zones.** Other cities than Berlin are still missing.
This list is generated from [`vbb-stations`](https://github.com/derhuerst/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](https://www.vbb.de/).**
[![npm version](https://img.shields.io/npm/v/vbb-fare-zones.svg)](https://www.npmjs.com/package/vbb-fare-zones)
[![build status](https://img.shields.io/travis/derhuerst/vbb-fare-zones.svg)](https://travis-ci.org/derhuerst/vbb-fare-zones)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/vbb-fare-zones.svg)
[![chat on gitter](https://badges.gitter.im/derhuerst.svg)](https://gitter.im/derhuerst)
[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)## Installing
```shell
npm install vbb-fare-zones
```## Usage
The [npm package](https://www.npmjs.com/package/vbb-fare-zones) contains a file for each zone. Each file contains an array of [station IDs](https://github.com/derhuerst/vbb-stations#usage).
To get stations of a single zone, require the corresponding file:
```js
const insideA = require('vbb-fare-zones/a.json')console.log(insideA)
```To get all zones, require the whole module:
```js
const {A, B, C} = require('vbb-fare-zones')console.log(A, B, C)
```## Related
- [`vbb-fare-zone`](https://github.com/juliuste/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](https://github.com/derhuerst/vbb-fare-zones/issues).