Coder Social home page Coder Social logo

derhuerst / generate-vbb-graph Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 2.0 67 KB

Generate a JSON graph from Berlin & Brandenburg public transport.

Home Page: https://github.com/derhuerst/generate-vbb-graph

License: ISC License

JavaScript 100.00%
public-transport vbb graph json transit berlin transport

generate-vbb-graph's Introduction

generate-vbb-graph

Generate a JSON graph from Berlin & Brandenburg public transport Writes a JGF file. See vbb-graph for published prebuilt data.

npm version build status ISC-licensed support me via GitHub Sponsors chat with me on Twitter

Installing

npm install -g generate-vbb-graph

Usage

Usage:
    generate-vbb-graph [-p subway,tram]
Options:
    --products             -p  A list of products. These are available:
                               suburban, subway, regional, tram, ferry, bus
    --projection           -P  Wether and how to project the station coordinates.
                               See juliuste/projections for details.
    --simple-lines         -s  Use a heuristic to keep only the most "canonical"
                               variant of each line. Default: false
    --simple-deduplication -d  Deduplicate edges without taking the travel
                               time into account. Default: false
    --lines-blacklist      -b  Apply a blacklist of weird lines. Default: false
Examples:
    generate-vbb-graph -p subway,tram -P mercator

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.

A node from nodes.ndjson looks like this:

{
	"id": "900000029101",
	"label": "S Spandau",
	"metadata": {
		"x": 536.66,
		"y": 326.25
	}
}

An edge from edges.ndjson looks like this:

{
	"source": "900000100001",
	"target": "900000003201",
	"relation": "regional",
	"metadata": {
		"line": "RB22",
		"time": 180
	}
}

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.

generate-vbb-graph's People

Contributors

derhuerst avatar greenkeeper[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sassalley

generate-vbb-graph's Issues

An in-range update of vbb-stations is breaking the build 🚨

Version 5.6.0 of vbb-stations just got published.

Branch Build failing 🚨
Dependency vbb-stations
Current Version 5.5.0
Type dependency

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

vbb-stations is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of vbb-trips is breaking the build 🚨

Version 2.9.0 of vbb-trips was just published.

Branch Build failing 🚨
Dependency vbb-trips
Current Version 2.8.0
Type dependency

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

vbb-trips is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

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

Commits

The new version differs by 1 commits.

  • 4baf7ca update to latest data, 2.9.0

See the full diff

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 🌴

An in-range update of vbb-stations is breaking the build 🚨

Version 6.4.0 of vbb-stations was just published.

Branch Build failing 🚨
Dependency vbb-stations
Current Version 6.3.0
Type dependency

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

vbb-stations is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed 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 🌴

update VBB data in dependencies

Hey,
I have been using generate-vbb-graph for a long time and I just realised that I always gives me information which isn't up to date. The data I get from it still includes names like "S Betriebsbahnhof Schöneweide", but does not include new data from the BER (like S Waßmannsdorf).

So it always gives me data from mid of 2020. Is that a bug? Is is potentially the case that the code links to an old server?

Many greetings and thanks

create an ignore list for lines

What S-bahn line is this?

generate-vbb-graph -p suburban --simple-lines --simple-deduplication
...
{"source":"900000560222","target":"900000550239","relation":"suburban","metadata":{"line":"s","time":180}}
...

An in-range update of vbb-stations is breaking the build 🚨

Version 5.8.0 of vbb-stations was just published.

Branch Build failing 🚨
Dependency vbb-stations
Current Version 5.7.0
Type dependency

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

vbb-stations is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

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

Commits

The new version differs by 2 commits.

  • ffcd472 update to latest data, 5.8.0
  • bae84f6 chore(package): update vbb-short-station-name to version 0.4.0

See the full diff

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 🌴

An in-range update of vbb-stations is breaking the build 🚨

Version 5.7.0 of vbb-stations was just published.

Branch Build failing 🚨
Dependency vbb-stations
Current Version 5.6.0
Type dependency

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

vbb-stations is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed 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 🌴

An in-range update of vbb-lines is breaking the build 🚨

Version 3.8.0 of vbb-lines was just published.

Branch Build failing 🚨
Dependency vbb-lines
Current Version 3.7.0
Type dependency

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

vbb-lines is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

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

Commits

The new version differs by 1 commits.

  • 8cb0e3d update to latest data, 3.8.0

See the full diff

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 🌴

An in-range update of vbb-stations is breaking the build 🚨

Version 5.5.0 of vbb-stations just got published.

Branch Build failing 🚨
Dependency vbb-stations
Current Version 5.4.0
Type dependency

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

vbb-stations is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

S5 double entry suburban

There are edges in both directions for suburban and --simple-lines

{"source":"900000320026","target":"900000320008","relation":"suburban","metadata":{"line":"S5","time":138}}

and

{"source":"900000320008","target":"900000320026","relation":"suburban","metadata":{"line":"S5","time":150}}

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.