Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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;
```