[GraphHopper] Why does GraphHopper choose street over path ?

ratrun ratrun at gmx.at
Thu May 14 06:06:04 UTC 2015


Hello,

This is because the way https://www.openstreetmap.org/way/329593444 is 
tagged as footway with bicycles=yes. Here we assume 6km/h. The 
preference is not changed, as it is not part of a cycle relation. Such 
ways could be crowded with pedestrians and dogs, therefore I believe the 
6km/h are ok considering the values for other way types. The cyclist is 
just allowed here, but mainly the way is made for pedestrians. 
Graphhopper currently does not take the set width tag, which is set to 
3.0 meters in your example,  into account. The choosen scondary has a 
speed limit of 50km/h (which is not too fast for my feeling) and 
therefore we assume 18km/h without changing the preference down. As it 
is not much longer, graphhopper chooses it. The secondary is not tagged 
with lanes, but even if there would be multiple lanes there, graphhopper 
currently does not evaluate such information.

Please note that graphhopper would set the preference of the secondary 
down if the maxspeed on the secondary was greater than 80. This probobly 
should be better changed to "greater or equal" 80km or even 70 km/h.
@Peter: Can you change the line 
https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/BikeCommonFlagEncoder.java#L495 
?

ratrun



Am 14.05.2015 um 02:37 schrieb Morten Lange:
> Hello
>
> I have a an example illustrating a problem I have often encountered.
> Can anyone explain why GarpHopper chooses the road ( multilane fast 
> traffic ) rather  than a shared path when routing for cycling ?
> GH  does not refuse to route bicycles along the path, but seems to 
> judge" the road as faster ?
>
>
> OpenStreetMap 
> <https://www.openstreetmap.org/directions?engine=graphhopper_bicycle&route=64.13323%2C-21.86841%3B64.13484%2C-21.87089#map=17/64.13394/-21.86961>
> 	
> image 
> <https://www.openstreetmap.org/directions?engine=graphhopper_bicycle&route=64.13323%2C-21.86841%3B64.13484%2C-21.87089#map=17/64.13394/-21.86961>
> 	
> 	
> 	
> 	
> 	
> OpenStreetMap 
> <https://www.openstreetmap.org/directions?engine=graphhopper_bicycle&route=64.13323%2C-21.86841%3B64.13484%2C-21.87089#map=17/64.13394/-21.86961> 
>
> OpenStreetMap is the free wiki world map.
>
> View on www.openstreetmap.org 
> <https://www.openstreetmap.org/directions?engine=graphhopper_bicycle&route=64.13323%2C-21.86841%3B64.13484%2C-21.87089#map=17/64.13394/-21.86961>
> 	
> Preview by Yahoo
>
> -- 
> Regards / Kveðja / Hilsen
> Morten Lange, Reykjavík
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150514/805527ce/attachment.html>


More information about the GraphHopper mailing list