Giter VIP home page Giter VIP logo

vbb-fare-zones's Introduction

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)
  • 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.

vbb-fare-zones's People

Contributors

derhuerst avatar greenkeeper[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

vbb-fare-zones's Issues

An in-range update of pinkie-promise is breaking the build 🚨

Version 2.0.2 of pinkie-promise was just published.

Branch Build failing 🚨
Dependency pinkie-promise
Current Version
</td>
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

pinkie-promise is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

find all stations inside the C zone

Afaik, the C zone does not correspond to a geographic or administrative bonundary. One solution might be to query journeys from each station to the center of Berlin and check response for a C ticket. Unfortunately, as public-transport/vbb-hafas#17 suggests, the API doesn't return them anymore. It has been fixed. vbb-hafas returns and array journey.tickets now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.