Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 995 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 995 Bytes

LUP GTFS Generator

This generator parses the official pdf schedule into a machine processable JSON structure. The parsed schedule is then combined with the available routes from OpenStreetMaps to produce the final feed.

Download OSM data

# download OSM data for austria
$ wget https://download.geofabrik.de/europe/austria-latest.osm.pbf
# crop to the wider St. Pölten area
$ osmconvert austria-latest.osm.pbf -b=15.437878,48.076947,15.841626,48.301253 --complete-ways -o=stp.osm.pbf

Generate feed

$ ./gradlew :agency:lup:run  --args="--schedule-path $(pwd)/agency/lup/src/main/resources/2019-09-plan.pdf --osm-path $(pwd)/stp.osm.pbf --output-dir $(pwd)/generated/lup --start-date 2019-12-09 --end-date 2020-12-07"
# check generated/lup for the complete feed

# create the final GTFS feed as zip file
$ zip -j $(pwd)/feeds/lup-gtfs.zip $(pwd)/generated/lup/gtfs/*