|
1 | 1 | # Deutsche Bahn Data |
2 | 2 |
|
3 | 3 | This project saves public historical data from "Deutsche Bahn", the biggest german train company and makes it [accessible](https://huggingface.co/datasets/piebro/deutsche-bahn-data) for everyone to use. |
4 | | -It includes train schedules, delays, and cancellations from stations across Germany. |
| 4 | +It includes train schedules, delays, and cancellations from stations across Germany. |
| 5 | + |
| 6 | +There is also a small website to show same stat about the Deutsche Bahn: [piebro.github.io/deutsche-bahn-data](https://piebro.github.io/deutsche-bahn-data/stats/allgemein.html) |
5 | 7 |
|
6 | 8 | The data can be used to validate the [official statistics](https://www.deutschebahn.com/de/konzern/konzernprofil/zahlen_fakten/puenktlichkeitswerte-6878476) and to create many other statistics. |
7 | 9 |
|
@@ -84,14 +86,38 @@ uv sync --python 3.13 |
84 | 86 | uv run pre-commit install |
85 | 87 | ``` |
86 | 88 |
|
| 89 | +## Generating HTML from Notebooks |
| 90 | + |
| 91 | +```bash |
| 92 | +uv run python notebooks/src/nb_to_html.py # Convert all notebooks (no execution) |
| 93 | +uv run python notebooks/src/nb_to_html.py --run # Run and convert all notebooks |
| 94 | +uv run python notebooks/src/nb_to_html.py --run allgemein # Run only allgemein, convert all |
| 95 | +``` |
| 96 | + |
87 | 97 | ## Contributing |
88 | 98 |
|
89 | 99 | Contributions are welcome. Open an Issue if you want to report a bug, have an idea or want to propose a change. |
90 | 100 |
|
| 101 | +## Related Deutsche Bahn and Open Data Websites |
| 102 | + |
| 103 | +There are a few other projects that look at similar data. |
| 104 | +- [Video](https://www.youtube.com/watch?v=0rb9CfOvojk): BahnMining - Pünktlichkeit ist eine Zier (David Kriesel) [2019] |
| 105 | +- [www.deutschebahn.com](https://www.deutschebahn.com/de/konzern/konzernprofil/zahlen_fakten/puenktlichkeitswerte-6878476#): official statistics from Deutsche Bahn |
| 106 | +- [bahn.expert](https://bahn.expert): look at the departure monitor of train stations in real time |
| 107 | +- [next.bahnvorhersage.de](https://next.bahnvorhersage.de): a tool to calculate the probability that a train connection works using historical data |
| 108 | +- [www.zugfinder.net](https://www.zugfinder.net/de/start): multiple maps of current train positions and statistics for long-distance trains in Germany, Austria, BeNeLux, Denmark, Italy and Slovenia |
| 109 | +- [strecken-info.de](https://strecken-info.de/): a map of the German railroads with current construction sites and disruptions on the routes |
| 110 | +- [openrailwaymap.org](https://openrailwaymap.org/): a worldwide map with railway infrastructure using OpenStreetMap Data |
| 111 | +- [zugspaet.de](https://zugspaet.de): a website, where you can then enter your train and see how often it was late or on time in the past |
| 112 | + |
91 | 113 | ## License |
92 | 114 |
|
93 | 115 | All code in this project is licensed under the MIT License. The [data](https://huggingface.co/datasets/piebro/deutsche-bahn-data) is licensed under [Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/) by Deutsche Bahn. |
94 | 116 |
|
| 117 | +## Disclaimer |
| 118 | + |
| 119 | +This website is developed by Piet Brömmel. It has no affiliation with Deutsche Bahn or any other transportation company. This website is my personal project and everything stated here is provided without warranty, but is maintained by me to the best of my ability. |
| 120 | + |
95 | 121 | ## Acknowledgments |
96 | 122 |
|
97 | 123 | Data sourced from Deutsche Bahn's public APIs. Special thanks to Deutsche Bahn for providing open access to this data. |
0 commit comments