OTP refuses to use walking path - how to debug?

213 views
Skip to first unread message

Rhys Gareth

unread,
Aug 22, 2014, 5:46:19 AM8/22/14
to opentrippl...@googlegroups.com
There is a walking path with bus stop that OTP simply refuses to use, resulting in it either providing no route, or snapping to the nearest road. If possible I'd like to "learn to fish" and know how to debug/troubleshoot this myself.

Here is a closeup of the problematic path in OSM: https://www.openstreetmap.org/edit#map=22/1.31213/103.80368

I compared it to other paths nearby which work, and can't figure out what the difference is. 

Here's an example local OTP query (i.e. trying to walk between two points on that path): 

If you move the end point east across the highway, you get no results, even though that walking path is connected to a pedestrian overpass.

I'd like to know what the problem is and if I can fix it via OSM edits, or OTP configuration, or other?

Thanks,
Rhys

Laurent Gregoire

unread,
Aug 24, 2014, 8:08:21 AM8/24/14
to opentrippl...@googlegroups.com
Hi Rhys,

On 22/08/14 11:46, Rhys Gareth wrote:
> There is a walking path with bus stop that OTP simply refuses to use,
> resulting in it either providing no route, or snapping to the nearest road.
> If possible I'd like to "learn to fish" and know how to debug/troubleshoot
> this myself.
>
> Here is a closeup of the problematic path in
> OSM: https://www.openstreetmap.org/edit#map=22/1.31213/103.80368

Looking at the OSM data, it could be a snap issue for the stop (walk
path for example, or bridge/underpass). You can try to debug your graph
with the graph vizualizer, where you can inspect to which edge the stop
has been connected to.
To be honest, that does not help much, URL host is your local machine :)

HTH,

--Laurent


Rhys Gareth

unread,
Aug 24, 2014, 9:02:57 AM8/24/14
to Laurent Gregoire, opentrippl...@googlegroups.com
Hi Laurent,

Clarifications inline:

On 24 Aug, 2014, at 2:02 pm, Laurent Gregoire <laurent....@gmail.com> wrote:

Hi Rhys,

On 22/08/14 11:46, Rhys Gareth wrote:
There is a walking path with bus stop that OTP simply refuses to use,
resulting in it either providing no route, or snapping to the nearest road.
If possible I'd like to "learn to fish" and know how to debug/troubleshoot
this myself.

Here is a closeup of the problematic path in
OSM: https://www.openstreetmap.org/edit#map=22/1.31213/103.80368

Looking at the OSM data, it could be a snap issue for the stop (walk
path for example, or bridge/underpass). You can try to debug your graph
with the graph vizualizer, where you can inspect to which edge the stop
has been connected to.

I just realised that by mentioning “bus stop” I may have confused you with unnecessary data. Actually, the bus stop itself appears to have nothing at all to do with the problem. Regardless of where I click on that path, I cannot get OTP to route along it. e.g. even if clicking two points on the path to walk between, it still tries to snap to another road, or fails altogether. In other words, OTP refuses to use this path for point-to-point walks under all circumstances - it’s as if the path didn’t exist.

FYI here is the INFO stack trace (0.11.x): when routing along the path is attempted: http://pastebin.com/SscMx7ex (org.opentripplanner.routing.error.PathNotFoundException).
And here is the DEBUG: http://pastebin.com/wtLyAzHL

Is there any other way of debugging I can use? Neither of those give me much of a hint.
Oh, I knew that - but I couldn’t find an open OTP instance running that let me query walk paths in Singapore. I thought the URL parameters would help in case anyone was following along at home..!


HTH,

--Laurent



Marko Burjek

unread,
Aug 24, 2014, 10:40:18 AM8/24/14
to opentripplanner-users
So If you click on path both start and end point? Those points don't appear on a path and a path isn't found?
Look which start and end vertex you get in getClosestVertex function.

Linker which is searching for start and end points prefers car driven streets maybe this is your problem:
https://github.com/opentripplanner/OpenTripPlanner/issues/1305

I fixed this for me here: https://github.com/buma/OpenTripPlanner/commit/35e2ced821442d8d5872ced63b2d897e63db3be8
But it's not so easy to fix in general, because there is a lot of different things to take into account that's why it isn't fixed in master.

Before a fix I coudn't put start/end at a path if a street was near it. Now it works.


--
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.

Reply all
Reply to author
Forward
0 new messages