{"id":19034459,"url":"https://github.com/lzear/ubahnchen","last_synced_at":"2025-04-09T09:07:37.089Z","repository":{"id":58204317,"uuid":"530431660","full_name":"lzear/ubahnchen","owner":"lzear","description":"Berlin subway map, animated","archived":false,"fork":false,"pushed_at":"2024-10-20T19:19:26.000Z","size":90915,"stargazers_count":90,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T06:11:14.785Z","etag":null,"topics":["berlin","gtfs","livemap","metro","network","public-transit","subway","ubahn"],"latest_commit_sha":null,"homepage":"https://ubahnchen.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lzear.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-29T23:46:18.000Z","updated_at":"2024-09-05T15:06:49.000Z","dependencies_parsed_at":"2024-10-20T23:09:29.376Z","dependency_job_id":null,"html_url":"https://github.com/lzear/ubahnchen","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/lzear%2Fubahnchen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzear%2Fubahnchen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzear%2Fubahnchen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzear%2Fubahnchen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lzear","download_url":"https://codeload.github.com/lzear/ubahnchen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008631,"owners_count":21032556,"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","gtfs","livemap","metro","network","public-transit","subway","ubahn"],"created_at":"2024-11-08T21:45:26.378Z","updated_at":"2025-04-09T09:07:37.074Z","avatar_url":"https://github.com/lzear.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ubähnchen\n\n**[ubähnchen.vercel.app](https://xn--ubhnchen-1za.vercel.app/)**\n\nAn animated live map of the Berlin U-Bahn.\n\n\u003cp align=\"center\"\u003e\n\u003cimg alt=\"preview of Ubähnchen, in U-Bahn mode\" src=\"./preview.svg\" width=\"500\"\u003e\u003cimg alt=\"preview of Ubähnchen, in S-and-U -Bahn mode, with controls showing\" src=\"./preview.png\" width=\"300\"\u003e\n\u003c/p\u003e \n\n## How it works\n\n### Planned mode\n\nSchedules are extracted from\nthe [GTFS data of the VBB](https://www.vbb.de/vbb-services/api-open-data/datensaetze/)\nwhich contains\nthe `arrival time` and `departure time` for a time period of several months. The\nmovement of the train is simulated at constant speed between stations.\n\nThe GTFS data is currently manually updated, so it is constantly lagging a few\ndays behind latess updates from VBB.\n\n### Live mode (beta)\n\nMandatory stuff: \"Powered by VBB GmbH. All information without guarantee.\"\n\nThe [HAFAS API](https://github.com/public-transport/hafas-client) has a “radar”\nendpoint, giving the position of all trains and some animation data, containing\nstops information (origin, target, time) and a `proc`\nvalue, which I think means \"position between 2 stops in percent\". So I'm using\nthat to place trains on the map.\n\nUnfortunately, there are some implementation mistakes from me, causing trains to\nmove\nweirdly or disappear.\n\n### Maps\n\nThe [U-Bahn](https://de.wikipedia.org/wiki/Datei:U-Bahn_Berlin_-_Netzplan.svg)\nmap\nand [S-Bahn+U-Bahn](https://de.wikipedia.org/wiki/Datei:S-_und_U-Bahn-Linien_Berlin.svg)\nmaps ( [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)) are\ntaken from Wikipedia and modified. In particular, the paths for the lines needed\nto be made continuous, instead of being many disjoint portions.\n\n### Animation\n\nThe display and animations is made with [paperjs](http://paperjs.org/).\n\n\n### Thanks\n\n* [Jannis R](https://github.com/derhuerst) for his libraries and documentation that were very helpful to build this project.\n* VBB for publishing the data and having APIs that are necessary for this project. And also for running the trains.\n\n\n## Development\n\n### Setup\n\n⚠️ Many steps are certainly missing. Please don't hesitate to open issues or PRs\nbefore you get frustrated with this.\n\n* `yarn install`\n* `yarn build` in the gtfs-loader package. This should:\n    * Download\n      the [files from VBB](https://www.vbb.de/vbb-services/api-open-data/datensaetze/)\n      in the `ubahnchen/GTFS` folder.\n    * Filter out transportation modes that are not in use yet (bus, tram,\n      boat...).\n    * Save all relevant values in a SQLite database\n* Run the unit test. They validate the data.\n* `yarn dev` in the ui package.\n\n### Things I like to look at in the future\n\n* https://www.berlintransitmap.de/\n* https://en.wikipedia.org/wiki/Berlin_U-Bahn\n\nThe timezones are probably not handled properly. Please make sure you are\nin `CET` before running `yarn build` 😄\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flzear%2Fubahnchen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flzear%2Fubahnchen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flzear%2Fubahnchen/lists"}