Home

Awesome

vbb-graph

Berlin & Brandenburg public transport as JSON graph. Generated using generate-vbb-graph.

npm version build status ISC-licensed chat on gitter

Installing

npm install vbb-graph

Usage

The npm package contains two files nodes.ndjson & edges.ndjson. As the readme of generate-vbb-graph explains:

This tool generates data in the JSON Graph Format. Note that instead of storing all nodes and edges in one JSON file, it will create nodes.ndjson and edges.ndjson. These are ndjson-encoded lists of all nodes and edges, respectively.

const ndjson = require('ndjson')

fs.createReadStream(require.resolve('vbb-graph/nodes.ndjson'))
.pipe(ndjson.parse())
.on('error', console.error)
.on('data', console.log)

Contributing

If you have a question or have difficulties using vbb-graph, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.