opentripplanner / OpenTripPlanner

An open source multi-modal trip planner
http://www.opentripplanner.org
Other
2.19k stars 1.03k forks source link

Default Analyst Usage Fails #1899

Closed hunterowens closed 9 years ago

hunterowens commented 9 years ago

When I try an run in the in-browser analyst, the api call to http://localhost:8080/otp/surfaces?batch=true&layers=traveltime&styles=color30&time=9%3A45am&date=04-23-2015&mode=TRANSIT%2CWALK&maxWalkDistance=804.672&fromPlace=41.970722347928096%2C-87.73956298828125&toPlace=41.970722347928096%2C-87.73956298828125

returns null Pointer exception.

Traceback


java.lang.NullPointerException at org.opentripplanner.api.resource.SurfaceResource.createSurface(SurfaceResource.java:90)
buma commented 9 years ago

Is analyst extenstion enabled when starting otp? You need to use ./otp --analyst when starting OTP to use analyst.

hunterowens commented 9 years ago

Took me a while to figure out that I need to add this. Is there somewhere in the docs that would a good fit for notes about this?

buma commented 9 years ago

Probably here: http://docs.opentripplanner.org/en/latest/Basic-Usage/ or http://docs.opentripplanner.org/en/latest/Analyst/.

Seems that analyst isn't even described on new doc.

2015-04-27 16:57 GMT+02:00 Hunter Owens notifications@github.com:

Closed #1899 https://github.com/opentripplanner/OpenTripPlanner/issues/1899.

— Reply to this email directly or view it on GitHub https://github.com/opentripplanner/OpenTripPlanner/issues/1899#event-290962942 .