vbb-graph

0.29.0 • Public • Published

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.

Dependencies (1)

Dev Dependencies (4)

Package Sidebar

Install

npm i vbb-graph

Weekly Downloads

1

Version

0.29.0

License

ISC

Last publish

Collaborators

  • derhuerst