{"id":14483606,"url":"https://github.com/benjamintd/chronotrains","last_synced_at":"2025-08-30T04:31:40.675Z","repository":{"id":59479064,"uuid":"516314434","full_name":"benjamintd/chronotrains","owner":"benjamintd","description":"Shortest times between train stations in Europe","archived":false,"fork":false,"pushed_at":"2024-07-30T14:07:45.000Z","size":645686,"stargazers_count":699,"open_issues_count":21,"forks_count":41,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-12-27T05:30:28.198Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.chronotrains.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benjamintd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"license.md","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},"funding":{"ko_fi":"benjamintd"}},"created_at":"2022-07-21T09:53:08.000Z","updated_at":"2024-12-23T17:29:54.000Z","dependencies_parsed_at":"2024-07-30T17:54:07.560Z","dependency_job_id":null,"html_url":"https://github.com/benjamintd/chronotrains","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/benjamintd/chronotrains","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamintd%2Fchronotrains","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamintd%2Fchronotrains/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamintd%2Fchronotrains/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamintd%2Fchronotrains/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benjamintd","download_url":"https://codeload.github.com/benjamintd/chronotrains/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamintd%2Fchronotrains/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272805349,"owners_count":24995909,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-09-03T00:01:54.254Z","updated_at":"2025-08-30T04:31:40.310Z","avatar_url":"https://github.com/benjamintd.png","language":"TypeScript","funding_links":["https://ko-fi.com/benjamintd"],"categories":["TypeScript"],"sub_categories":[],"readme":"# Chronotrains\n\nChronotrains is an interactive map that allows seeing how far you can travel by train in 5h.\n\n![Screen Shot 2022-08-30 at 3 39 18 PM](https://user-images.githubusercontent.com/11202803/187453751-816f9f2b-8cb5-4586-ae40-4bc3b5da2087.png)\n\n## How does it work?\n\nThis map displays isochrones: the area that is reachable from a starting point in a given amount of time.\n\nThis is made possible by building a graph of train stations with the journey durations, and exploring that graph for each station to see which destinations are reachable in 1h, 2h, ... 5h.\n\nThe source data is from the Deutsche Bahn, conveniently wrapped into an API by [Direkt Bahn Guru](https://github.com/juliuste/api.direkt.bahn.guru).\n\nBecause local transit is not included for most cities, there are no journeys available between different stations that can actually be connected by bus, bike, or on foot.\n\nWe add edges between those closeby stations (when the distance is less than 10 km), assuming the distance can be traveled at 9 km/h (faster than walking, slower than biking).\n\nAfter scraping this data, we pre-compute the isochrones. We assume interchanges last 20 minutes.\nThe isochrones are stored as GeoJSON and served on hover.\n\n## Technology\n\nThis is a Next.js application deployed on Vercel. This allows using the Vercel Edge cache to serve the isochrones fast enough to have a smooth experience.\n\nThe mapping library is mapbox-gl.\n\nThe data is stored on a Postgres database hosted at Supabase.\n\nThe pre-processing is a mix between Node.js scripts and SQL queries. It is currently triggered by hand and processed locally.\n\n## Internationalization\n\nWe use `next-i18next` to translate the app into various languages. If you'd like to contribute a language, you can do so by submitting a Pull Request with a new file in `public/locales/[your language]/common.json`, and editing `next-i18next.config.js` to add your locale name.\n\n## Cloning the repo\n\nPrevious versions of the git history contained all the data committed as static files. For faster cloning, use `git clone --depth 1 https://github.com/benjamintd/chronotrains.git`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjamintd%2Fchronotrains","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjamintd%2Fchronotrains","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjamintd%2Fchronotrains/lists"}