Awesome
vbb-graph
Berlin & Brandenburg public transport as JSON graph. Generated using generate-vbb-graph
.
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
andedges.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.