Hello,
I am a first time user of OTP and want to use it to get travel times for a set of centroids.
As I cannot use the scripting API (it seems to depend on Jython, which only supports Python2 & my code is using Python3), my current plan is to run otp on localhost and use the web API for queries.
I managed to build the graph.obj for my area of interest:
'java -jar otp/otp-1.2.0-shaded.jar --build otp/graphs/strasbourg'
And started the Grizzly server :
java -Xmx8G -jar otp-1.2.0-shaded.jar --router strasbourg --server --port 8813 --securePort 8814
But as soon as I try to enter any query, f.e. the one given
in the intermediate tutorial, I land on a site saying:
"java.lang.NullPointerException null".
During the start-up of the server, I got some warnings regarding the routerID :
10:59:23.144 INFO (GraphService.java:189) Registering new router 'strasbourg'
10:59:23.144
WARN (InputStreamGraphSource.java:218) Graph file not found or not
openable for routerId 'strasbourg': java.io.FileNotFoundException:
\var\otp\graphs\strasbourg\Graph.obj (Das System kann die angegebene
Datei nicht finden)
10:59:23.144 WARN (InputStreamGraphSource.java:144) Unable to load data for router 'strasbourg'.
10:59:23.144 WARN (GraphService.java:198) Can't register router ID 'strasbourg', no graph.
This obviously is the cause of the error.
What I want to ask is how to enable otp to register the routerID? Why can't otp find my Graph file?
My folder is structured like this:
.../otp/
- otp-1.2.0-shaded.jar
-graphs/
-strasbourg/
-Graph.obj
-strasbourg.osm.pbf
-gtfs.zip