2021-08-25 21:27:34 +02:00
|
|
|
# OTP setup for VBN
|
2021-08-26 15:48:58 +02:00
|
|
|
There is not just one way to do it.
|
|
|
|
That is why you find the following selection.
|
|
|
|
|
|
|
|
## Setup according to [basic tutorial](http://docs.opentripplanner.org/en/latest/Basic-Tutorial/)
|
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 .
|
2021-08-26 15:48:58 +02:00
|
|
|
|
|
|
|
## Setup accoriding to [cookbook](https://transportkollektiv.github.io/digitransit-setup/index.html)
|
|
|
|
There is a dedicated [repository[(https://github.com/transportkollektiv/digitransit-setup) for this cookbook.
|
|
|
|
|
|
|
|
to be continued
|
|
|
|
|
|
|
|
## Setup accoding to [Stadtnavi tutorial](https://github.com/stadtnavi/stadtnavi-tutorial)
|
|
|
|
|
|
|
|
to be continued
|