{"id":15592264,"url":"https://github.com/derhuerst/vbb-routing","last_synced_at":"2025-07-10T07:32:51.251Z","repository":{"id":41258211,"uuid":"121703239","full_name":"derhuerst/vbb-routing","owner":"derhuerst","description":"[work in progress] – Compute journeys based on the VBB GTFS data.","archived":false,"fork":false,"pushed_at":"2022-06-30T00:43:17.000Z","size":41,"stargazers_count":2,"open_issues_count":9,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-01T00:20:29.087Z","etag":null,"topics":["gtfs","public-transport","routing","transit"],"latest_commit_sha":null,"homepage":"https://github.com/derhuerst/vbb-routing#vbb-routing","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":"2018-02-16T01:18:39.000Z","updated_at":"2022-04-26T13:02:33.000Z","dependencies_parsed_at":"2022-09-02T23:30:49.328Z","dependency_job_id":null,"html_url":"https://github.com/derhuerst/vbb-routing","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/derhuerst/vbb-routing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-routing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-routing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-routing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-routing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derhuerst","download_url":"https://codeload.github.com/derhuerst/vbb-routing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-routing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264545167,"owners_count":23625404,"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":["gtfs","public-transport","routing","transit"],"created_at":"2024-10-03T00:00:22.946Z","updated_at":"2025-07-10T07:32:51.211Z","avatar_url":"https://github.com/derhuerst.png","language":"JavaScript","funding_links":["https://patreon.com/derhuerst"],"categories":[],"sub_categories":[],"readme":"# vbb-routing\n\n**Compute [journeys](https://github.com/public-transport/friendly-public-transport-format/blob/1.0.1/spec/readme.md#journey) based on the [VBB GTFS data](https://github.com/derhuerst/vbb-gtfs.jannisr.de).**\n\n[![npm version](https://img.shields.io/npm/v/vbb-routing.svg)](https://www.npmjs.com/package/vbb-routing)\n[![build status](https://api.travis-ci.org/derhuerst/vbb-routing.svg?branch=master)](https://travis-ci.org/derhuerst/vbb-routing)\n![ISC-licensed](https://img.shields.io/github/license/derhuerst/vbb-routing.svg)\n[![chat with me on Gitter](https://img.shields.io/badge/chat%20with%20me-on%20gitter-512e92.svg)](https://gitter.im/derhuerst)\n[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)\n\n\n## Installing\n\n```shell\nnpm install vbb-routing\n```\n\n\n## Usage\n\n```js\ntodo\n```\n\n\n## Segment model\n\nStarting to walk the graph, our first segment looks like this:\n\n```js\nconst first = {\n\t// edge info\n\twhere: 'center', // arrival node\n\twhen: 1554307600, // start time\n\troute: null, // we just started, so no route ID\n\tduration: 0, // we just started, so edge duration\n\n\t// current state\n\ttransfers: 0,\n\tblacklist: ['center'], // node we don't want to visit again\n\tpreviousSegment: null\n}\n```\n\nA follow-up segment (the result of a single edge in the graph) may then look like this:\n\n```js\nconst second = {\n\t// edge info\n\twhere: 'lake',\n\twhen: 1554308040 + 360, // arrival time\n\troute: 'B',\n\tduration: 360,\n\n\t// current state\n\ttransfers: first.transfers + 0,\n\tblacklist: first.blacklist.concat('lake'),\n\tpreviousSegment: first\n}\n```\n\n\n## Contributing\n\nIf you have a question or have difficulties using `vbb-routing`, 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](https://github.com/derhuerst/vbb-routing/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fvbb-routing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderhuerst%2Fvbb-routing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fvbb-routing/lists"}