I'm testing the Isochone API and found this doc ( http://docs.opentripplanner.org/apidoc/0.11.0/resource_SIsochrone.html ) which mentions also the second version of isochrone made by Laurent Grégoire.
- We're using large graph ( country size ), what are the best performances options for this, the -l options does not seem to change anything. Also is OTP server best suited for this, or can a well conf'ed Tomcat do better in terms of speed ?
- I also saw the SimpleIsochrone ( http://docs.opentripplanner.org/apidoc/0.11.0/resource_SimpleIsochrone.html ) but cannot find the url to use for it, can someone tell me what a typical request looks like ?
--
You received this message because you are subscribed to the Google Groups "OpenTripPlanner Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
(I couldn't use port 8080 because it seems another server process is taking precedence over Grizzly)
--
You received this message because you are subscribed to the Google Groups "OpenTripPlanner Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
What specific URL are you accessing when the server tells you that the resource does not exist?
java -Xmx2G -jar otp-core/target/otp.jar --server -p 9090
16:54:56.423 INFO (ScanningResourceConfig.java:153) Root resource classes found:
class org.opentripplanner.api.resource.Patcher
class org.opentripplanner.api.resource.analyst.LIsochrone
class org.opentripplanner.api.resource.BikeRental
17:08:24.076 ERROR (PlannerError.java:61) exception planning trip:
java.lang.NullPointerException: null
at org.opentripplanner.analyst.request.IsoChroneSPTRendererAccSampling.getIsochrones(IsoChroneSPTRendererAccSampling.java:86) ~[otp.jar:1.1]
at org.opentripplanner.api.resource.analyst.LIsochrone.getIsochrone(LIsochrone.java:103) ~[otp.jar:1.1]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_55]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_55]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na
I saw a JSON respons (hooray!) but the msg said "We're sorry. The trip planner is temporarily unavailable. Please try again later."
17:08:24.076 ERROR (PlannerError.java:61) exception planning trip:
java.lang.NullPointerException: null
at org.opentripplanner.analyst.request.IsoChroneSPTRendererAccSampling.getIsochrones(IsoChroneSPTRendererAccSampling.java:86) ~[otp.jar:1.1]
at org.opentripplanner.api.resource.analyst.LIsochrone.getIsochrone(LIsochrone.java:103) ~[otp.jar:1.1]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_55]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_55]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na
java -jar otp-standalone/target/otp.jar -p 9999
Exception in thread "main" com.beust.jcommander.ParameterException: Unknown option: -a
at com.beust.jcommander.JCommander.parseValues(JCommander.java:723)
at com.beust.jcommander.JCommander.parse(JCommander.java:275)
at com.beust.jcommander.JCommander.parse(JCommander.java:258)
at com.beust.jcommander.JCommander.<init>(JCommander.java:203)
12:28:40.271 ERROR (GraphServiceImpl.java:219) Exception while loading graph from file:/var/otp/graphs/Graph.obj.
java.lang.IllegalStateException: Stored Graph version error
at org.opentripplanner.routing.graph.Graph.load(Graph.java:500)
at org.opentripplanner.routing.impl.GraphServiceImpl.loadGraph(GraphServiceImpl.java:217)
--
You received this message because you are subscribed to the Google Groups "OpenTripPlanner Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-users+unsub...@googlegroups.com.
12:34:11.900 INFO (GraphServiceFileImpl.java:172) Loading graph...
12:34:12.212 INFO (Graph.java:558) Graph version: MavenVersion(0, 11, 1, SNAPSHOT, 134e523bcbeca69fdab48b67b2ac29a2554226fd)
12:34:12.212 INFO (Graph.java:559) OTP version: MavenVersion(0, 11, 1, SNAPSHOT, 57c9dd3879d36d37b01550e8d28a2fb2355325d0)
12:34:12.212 WARN (Graph.java:565) This graph was built with the same SNAPSHOT version of OTP, but a different commit. Please rebuild the graph if you experience incorrect behavior.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-...@googlegroups.com.
--
Volkan Unsalweb and mobile development
java -Xmx2G -jar otp-standalone/target/otp.jar -p 9999
(*Note that the -a option did not work here.)
When I visited http://localhost:9999/otp/routers/default/isochrone?layers=traveltime&styles=mask&batch=true&fromPlace=40.8155791,-73.94304299999999&date=2014/12/10&time=12:00:00&mode=TRANSIT&walkSpeed=3&maxWalkDistance=1000&precisionMeters=5000&cutoffSec=6900 the error message said "resource does not exist."
When I tried to start the otp-core, it did complain about the graph version.
java -Xmx2G -jar otp-core/target/otp.jar -p 9999
13:43:56.191 ERROR (GraphServiceFileImpl.java:177) Exception while loading graph from /var/otp/graphs/Graph.obj.
java.lang.IllegalStateException: Stored Graph version error
So I don't know what I should do next... :-/
Ok. I rebuilt the graph. When I started the standalone server with the following command, tit didn't complain about the graph version this time:
java -Xmx2G -jar otp-standalone/target/otp.jar -p 9999(*Note that the -a option did not work here.)
13:43:56.191 ERROR (GraphServiceFileImpl.java:177) Exception while loading graph from /var/otp/graphs/Graph.obj.
java.lang.IllegalStateException: Stored Graph version errorSo I don't know what I should do next... :-/
Exception in thread "main" com.beust.jcommander.ParameterException: Unknown option: -a
at com.beust.jcommander.JCommander.parseValues(JCommander.java:723)
at com.beust.jcommander.JCommander.parse(JCommander.java:275)
at com.beust.jcommander.JCommander.parse(JCommander.java:258)
at com.beust.jcommander.JCommander.<init>(JCommander.java:203)
at org.opentripplanner.standalone.OTPMain.main(OTPMain.java:55)
--
You received this message because you are subscribed to the Google Groups "OpenTripPlanner Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-users+unsub...@googlegroups.com.
-Andrew
--
You received this message because you are subscribed to the Google Groups "OpenTripPlanner Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-users+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.