Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jbruechert/zpcg-gtfs
Generator for the ŽPCG GTFS Feed
https://github.com/jbruechert/zpcg-gtfs
Last synced: 10 days ago
JSON representation
Generator for the ŽPCG GTFS Feed
- Host: GitHub
- URL: https://github.com/jbruechert/zpcg-gtfs
- Owner: jbruechert
- Created: 2024-08-24T09:20:43.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-27T14:00:10.000Z (10 days ago)
- Last Synced: 2024-10-27T15:45:25.367Z (10 days ago)
- Language: Python
- Size: 835 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSES/AGPL-3.0-only.txt
Awesome Lists containing this project
README
# ŽPCG GTFS-Feed Generator
This repository contains scripts to fetch the timetable from the Deutsche Bahn API, augment it with OpenStreetMap data and generate a GTFS feed from it.
The resulting feeds are:
* [ŽPCG (trains in Montenegro)](https://jbb.ghsq.de/gtfs/me-zpcg.gtfs.zip)
* [Srbijavoz (trains in Serbia)](https://jbb.ghsq.de/gtfs/rs-srbijavoz.gtfs.zip)## Dependencies
To run the `update-feed.sh` script, you need
* python3
* pyhafas
* zip
* [gtfsclean](https://github.com/public-transport/gtfsclean/)
* [pfaedle](https://github.com/ad-freiburg/pfaedle)## License
`stations.geojson` is exported from OpenStreetMap and licensed under the [ODbL](https://opendatacommons.org/licenses/odbl/)
## Maintainance
You can regenerate the stations.geojson file using the following query on https://overpass-turbo.eu/
```
(
area["ISO3166-1"="RS"];
area["ISO3166-1"="ME"];
area["ISO3166-1"="BA"];
area["ISO3166-1"="HU"];
);
(
(
nwr[~"disused:railway|construction:railway|railway"~"station|halt|yard"](area);
);
);
out center;
```