Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yelinz/commute-city-triangulation
Find a location in the Swiss train network from which you can reach multiple destinations directly.
https://github.com/yelinz/commute-city-triangulation
dviz gtfs hslu streamlit-dashboard
Last synced: about 1 month ago
JSON representation
Find a location in the Swiss train network from which you can reach multiple destinations directly.
- Host: GitHub
- URL: https://github.com/yelinz/commute-city-triangulation
- Owner: Yelinz
- License: mit
- Created: 2023-07-18T12:41:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-28T16:15:24.000Z (about 1 year ago)
- Last Synced: 2024-11-07T12:51:46.672Z (3 months ago)
- Topics: dviz, gtfs, hslu, streamlit-dashboard
- Language: Jupyter Notebook
- Homepage: https://commute-triangulation.streamlit.app/
- Size: 5.5 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Open in Streamlit](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://commute-triangulation.streamlit.app/)
# Commute city triangulation
This project is intended to find a city in the swiss train network from where you can reach your chosen destinations.
It is not intended to show last kilometer (last mile) solutions, but rather overarching city to city train route options.The displayed routes are only as accurate as the SBB provides. Which means it is fairly accurate but some ghost routes might exist. That means the GTFS data includes a stop in some location, while in reality and on sbb.ch it is not listed.
There are a lot of ghost stops in the GTFS data. Stops where the train parks or so I assume but no passengers board.This works on the GTFS data provided by https://opentransportdata.swiss.
All operations are currently done in memory with pandas. That means the whole GTFS feed is loaded into memory.
Might need migration to a database, if the memory requirements are too high.## Usage
Requirements:
- poetryInstall the dependencies
```sh
poetry install --no-root
```Be sure to have the latest GTFS zip from which ever preferred source.
The name should be `gtfs.zip` and located in the root of the project.
There is a example gtfs file provided but it will not be up to date.
```sh
git lfs pull
```To start the dashboard run:
```sh
poetry run streamlit run main.py
```Refer to the documentation page on how to use the dashboard and what it conatins.
## Info
Deployed version: https://commute-triangulation.streamlit.app/This dashboard was created in the DVIZ lectures at HSLU.
The required [project report](Report.pdf) is also in the repository.