Replies: 3 comments 6 replies
-
can you provide some examples where you get incorrect behavior (No suitable edges ...)? |
Beta Was this translation helpful? Give feedback.
-
Sure, here's an example file with some points I can't get bike locating to work at: block_centroid_issues.zip Actually, as I was going through the process to generate this file, I was able to dig into the error code a little bit, it seems like it is caused by the following: I noticed that the areas I'm having problems with seem to cluster spatially, so not sure what is happening to these quite large spaces where the graph is failing for bicycle in particular (it works with car and ped). |
Beta Was this translation helpful? Give feedback.
-
DirectedEdge index out of bounds almost always means bad data or issues with building tiles. I ran your locate request above against my local server and it works fine (as did many random requests and bicycle routes I've tried). |
Beta Was this translation helpful? Give feedback.
-
Not sure if there's anything to be done about this, but wanted to flag something odd I came across as I was try to analyze O-D pairs: Valhalla seems to have a rough time using the Locate API (Loki?) when the cost mode is set to Bicycle.
What I mean is that I often get error messages about
No suitable edges near...
for a given request (either for an O-D trip or an isochrone), but I can seemingly get around this error by changing thesearch_filter
options for that request location, namely formin_road_class
andmax_road_class
.Frustratingly, it seems that a different combination of min and max is necessary for each location, to get it to "snap" properly: some that I have used include:
min
:residential
,max
:primary
min
:tertiary
,max
:primary'
min
:secondary
,max
:primary
min
:primary
,max
:primary
min
:secondary
,max
:secondary
min
:tertiary
,max
:tertiary
My question might be: why is this the case? For instance, if my
min
andmax
are set toresidential
andprimary
, why does changing the minprimary
sometimes solve the issue? Shouldn't Valhalla already be searching theprimary
tree for suitable locations?Additionally, I'm checking these same routes with
auto
andpedestrian
modes, and it seems to have no issue with those: what is it that is particular about thebicycle
mode that makes it more prone to fail? I would imagine I could take a bike almost anywhere I am a pedestrian (sans stairs, easily at least)...I've also changed the
radius
andminimum_reachability
around, but that doesn't consistently fix the issue, whereas thesearch_filters
does seem to.Beta Was this translation helpful? Give feedback.
All reactions