https://github.com/codeformuenster/swms-busradar-gtfs-realtime
GTFS-realtime from Stadtwerke Münster realtime API (busradar)
https://github.com/codeformuenster/swms-busradar-gtfs-realtime
Last synced: 25 days ago
JSON representation
GTFS-realtime from Stadtwerke Münster realtime API (busradar)
- Host: GitHub
- URL: https://github.com/codeformuenster/swms-busradar-gtfs-realtime
- Owner: codeformuenster
- License: apache-2.0
- Created: 2019-11-10T16:39:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-05T20:40:44.000Z (over 6 years ago)
- Last Synced: 2025-12-26T19:45:40.729Z (6 months ago)
- Language: Go
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swms-busradar-gtfs-realtime
Stadtwerke Münster Busradar to GTFS-realtime. This software grabs messages from the [Stadtwerke Münster Busradar] [`/fahrzeuge`] endpoint and converts them to a GTFS realtime feed.
A hosted version of this realtime feed is hosted at [https://swms-busradar-gtfs-realtime.codeformuenster.org/feed](https://swms-busradar-gtfs-realtime.codeformuenster.org/feed).
## Running
The program will periodically fetch the [`/fahrzeuge`] endpoint of the [Stadtwerke Münster Busradar], translate the values into a GTFS realtime feed and store everything into a file called `feed` next to the executable binary. Set `GTFS_REALTIME_FEED_PATH` in your environment to override the path where the feed will be stored.
Running requires a GTFS feed from the [Stadtwerke Münster GTFS feed download page]. **Attention**: The files from file `stadtwerke_feed_20191028.zip` need to be converted to unix format using `dos2unix`. Extract the feed zip next to the executable binary or specify the path to the static feed (zip or folder) by setting `GTFS_FEED_PATH` in your environment.
### Container images
Container image [`quay.io/codeformuenster/swms-busradar-gtfs-realtime`] contains the main program of this project and is built from the root of this repository.
Container image [`quay.io/codeformuenster/swms-busradar-gtfs-realtime-init`] can be used to download, extract and convert the [Stadtwerke Münster GTFS feed] for usage in the main container.
### Kubernetes deployment
You'll find kubernetes manifests for running this project in your cluster in the [Code for Münster kubernetes-deployment repository].
## Development requirements
- Go >= 1.13
[Stadtwerke Münster GTFS feed download page]: https://www.stadtwerke-muenster.de/privatkunden/mobilitaet/fahrplaninfos/fahr-netzplaene-downloads/open-data-gtfs/gtfs-download.html
[Stadtwerke Münster Busradar]: http://api.busradar.conterra.de/
[`/fahrzeuge`]: https://rest.busradar.conterra.de/prod/fahrzeuge
[Code for Münster kubernetes-deployment repository]: https://github.com/codeformuenster/kubernetes-deployment/tree/master/sources/swms-busradar-gtfs-realtime
[`quay.io/codeformuenster/swms-busradar-gtfs-realtime`]: https://quay.io/repository/codeformuenster/swms-busradar-gtfs-realtime
[`quay.io/codeformuenster/swms-busradar-gtfs-realtime-init`]: https://quay.io/repository/codeformuenster/swms-busradar-gtfs-realtime-init