OTP Analyst

430 views
Skip to first unread message

Ivano Malavolta

unread,
Mar 27, 2015, 5:22:20 AM3/27/15
to opentrippl...@googlegroups.com
Hi all,
I am trying to execute a connectivity analysis by using the analyst component of OTP.
However, I have a problem in performing any kind of analysis via the analyst.
Basically, I can see the dropdown menu for the Analyst, but when I click on the map for specifying the starting point for the analysis 
a spinner appears in the center of the web page (see attached image), but nothing happens. Even the terminal is not showing any exception or error message.

For setting up OTP I followed all the steps reported in https://github.com/opentripplanner/OpenTripPlanner/blob/master/docs/Basic-Usage.md
and launched it with the following command:

java -Xmx4G -jar otp-1.0.0-SNAPSHOT.jar --build ./input_fes --inMemory --analyst 

We are using the Portland data, both GTFS and OSM (exported via Osmosis).
Data seems to be correctly loaded because the trip planner is working correctly.

Any idea about how to solve this issue? 

Thank you in advance, 

     Ivano
screenshot_otp.png

andrew byrd

unread,
Mar 27, 2015, 7:28:15 AM3/27/15
to opentrippl...@googlegroups.com
Hello Ivano,

The Analyst option in the OTP web interface is a demo of a single thing
can be done using OTP's Analyst services: drawing isochrones. There is a
distinction between this demo map not working and Analyst itself not
working. If you want to do some sort of analysis of a transportation
network you will probably need to do large numbers of calls to the same
API this demo is calling and consolidate the results in some way.

The key Analyst functionality of OpenTripPlanner is the ability to
create travel time surfaces, evaluate those surfaces at predefined
(potentially very large) sets of geographic points, and calculate
histograms showing how many objects of each type are at each time or
distance from an origin point. As far as I know that functionality is
working, since we have several other projects built on it such as
https://github.com/conveyal/analyst-server. I wouldn't necessarily
recommend running that one yourself though, it's intended to be a shared
hosted web-based service.

So, to respond to your question, I believe this web-based isochrone demo
simply has not been updated to match the current Analyst web API, and we
just need to get them back in alignment for it to work again. As you
reported, when I use this demo locally I see no errors from the OTP
server. In fact it reports that it has successfully created a surface.
The errors are on the client side, in the web browser Javascript
console:

"No surfaceId set, first call runAnalystQuery with a correct lat lon"

I didn't work on this client code so I don't know exactly what's wrong
off the top of my head but will create a Github issue for this. We
should get this demo working again.

-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-...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> Email had 1 attachment:
> + screenshot_otp.png
> 1.1M (image/png)

Ivano Malavolta

unread,
Mar 27, 2015, 10:37:10 AM3/27/15
to opentrippl...@googlegroups.com
Dear Andrew, thank you very much for the clarification,
I will go through the web APIs for my analysis.

Best,

    Ivano
Reply all
Reply to author
Forward
0 new messages