otp-setup/vbn/vbn.md

18 lines
993 B
Markdown
Raw Normal View History

2021-08-25 21:27:34 +02:00
# OTP setup for VBN
2021-08-26 11:44:57 +02:00
* Download GTFS [data](vbn.gtfs.zip) from Connect-Fahrplanauskunft GmbH
2021-08-25 21:27:34 +02:00
* Download osm map data from [geofabrik](lower-saxony.osm.pbf.ln)
* Get bounding box for VBN from https://boundingbox.klokantech.com/
* csv:7.6966,52.4508,9.6501,53.8503
2021-08-26 11:44:57 +02:00
* Extract VBN map data using the tool `osmconvert` creating the [file](vbn.osm.pbf)
2021-08-25 21:27:34 +02:00
* `cd ~/vbn/otp/`
2021-08-26 11:44:57 +02:00
* `osmconvert lower-saxony.osm.pbf.ln -b=7.6966,52.4508,9.6501,53.8503 --complete-ways -o=vbn.osm.pbf`
* The output file is called `vbn.osm.pbf`
2021-08-25 21:27:34 +02:00
* Build a street graph with OSM and elevation data only (ignoring transit input files)
* `java -Xmx2G -jar otp.jar --buildStreet .`
* The output file is called `streetGraph.obj`
* Build a graph layering transit data on top of the saved street graph (built using the previous command)
* `java -Xmx2G -jar otp.jar --loadStreet --save .`
* The output file is called `graph.obj`
* Finally, the server can be started using the --load parameter
* java -Xmx2G -jar otp.jar --load .