{"id":13554458,"url":"https://github.com/derhuerst/generate-vbb-graph","last_synced_at":"2025-04-15T05:02:13.906Z","repository":{"id":52843924,"uuid":"92852410","full_name":"derhuerst/generate-vbb-graph","owner":"derhuerst","description":"Generate a JSON graph from Berlin \u0026 Brandenburg public transport.","archived":false,"fork":false,"pushed_at":"2021-04-16T18:23:26.000Z","size":67,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T16:11:55.546Z","etag":null,"topics":["berlin","graph","json","public-transport","transit","transport","vbb"],"latest_commit_sha":null,"homepage":"https://github.com/derhuerst/generate-vbb-graph","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derhuerst.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-30T16:16:51.000Z","updated_at":"2025-03-11T22:56:37.000Z","dependencies_parsed_at":"2022-08-20T00:51:40.610Z","dependency_job_id":null,"html_url":"https://github.com/derhuerst/generate-vbb-graph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fgenerate-vbb-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fgenerate-vbb-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fgenerate-vbb-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fgenerate-vbb-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derhuerst","download_url":"https://codeload.github.com/derhuerst/generate-vbb-graph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249010212,"owners_count":21197797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["berlin","graph","json","public-transport","transit","transport","vbb"],"created_at":"2024-08-01T12:02:48.250Z","updated_at":"2025-04-15T05:02:13.872Z","avatar_url":"https://github.com/derhuerst.png","language":"JavaScript","funding_links":["https://github.com/sponsors/derhuerst"],"categories":["JavaScript","json"],"sub_categories":[],"readme":"# generate-vbb-graph\n\n**Generate a JSON graph from Berlin \u0026 Brandenburg public transport** Writes a [JGF](http://jsongraphformat.info) file. See [`vbb-graph`](https://github.com/derhuerst/vbb-graph) for published prebuilt data.\n\n[![npm version](https://img.shields.io/npm/v/generate-vbb-graph.svg)](https://www.npmjs.com/package/generate-vbb-graph)\n[![build status](https://img.shields.io/travis/derhuerst/generate-vbb-graph.svg)](https://travis-ci.org/derhuerst/generate-vbb-graph)\n![ISC-licensed](https://img.shields.io/github/license/derhuerst/generate-vbb-graph.svg)\n[![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst)\n[![chat with me on Twitter](https://img.shields.io/badge/chat%20with%20me-on%20Twitter-1da1f2.svg)](https://twitter.com/derhuerst)\n\n\n## Installing\n\n```shell\nnpm install -g generate-vbb-graph\n```\n\n\n## Usage\n\n```\nUsage:\n    generate-vbb-graph [-p subway,tram]\nOptions:\n    --products             -p  A list of products. These are available:\n                               suburban, subway, regional, tram, ferry, bus\n    --projection           -P  Wether and how to project the station coordinates.\n                               See juliuste/projections for details.\n    --simple-lines         -s  Use a heuristic to keep only the most \"canonical\"\n                               variant of each line. Default: false\n    --simple-deduplication -d  Deduplicate edges without taking the travel\n                               time into account. Default: false\n    --lines-blacklist      -b  Apply a blacklist of weird lines. Default: false\nExamples:\n    generate-vbb-graph -p subway,tram -P mercator\n```\n\nThis tool generates data in the [JSON Graph Format](https://github.com/jsongraph/json-graph-specification/blob/master/README.rst#json-graph-specification). Note that instead of storing all nodes and edges in one JSON file, **it will create `nodes.ndjson` and `edges.ndjson`. These are [ndjson](http://ndjson.org)-encoded lists of all nodes and edges**, respectively.\n\nA node from `nodes.ndjson` looks like this:\n\n```json\n{\n\t\"id\": \"900000029101\",\n\t\"label\": \"S Spandau\",\n\t\"metadata\": {\n\t\t\"x\": 536.66,\n\t\t\"y\": 326.25\n\t}\n}\n```\n\nAn edge from `edges.ndjson` looks like this:\n\n```json\n{\n\t\"source\": \"900000100001\",\n\t\"target\": \"900000003201\",\n\t\"relation\": \"regional\",\n\t\"metadata\": {\n\t\t\"line\": \"RB22\",\n\t\t\"time\": 180\n\t}\n}\n```\n\n\n## Contributing\n\nIf you **have a question**, **found a bug** or want to **propose a feature**, have a look at [the issues page](https://github.com/derhuerst/generate-vbb-graph/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fgenerate-vbb-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderhuerst%2Fgenerate-vbb-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fgenerate-vbb-graph/lists"}