Project-OSRM / osrm-backend

Open Source Routing Machine - C++ backend
http://map.project-osrm.org
BSD 2-Clause "Simplified" License
6.46k stars 3.42k forks source link

use bike speed when biking on a pedestrian street #237

Closed emiltin closed 12 years ago

emiltin commented 12 years ago

some pedestrian streets allow bicycling, using the bicycle=yes tag. osrm correctly allows routing on these, but seems to uses the pedestrian speed instead of the default cycling speed.

for example i might have this in my speedprofile:

defaultSpeed = 17 pedestrian=5

when routing on a way with highway=pedestrin & bicycle=yes, osrm should use the speed 17, not 5 (perhaps by choosing the highest of the two values?).

even better would be two have two settings for such 'slow' ways: one for pushing bikes (when cycling is not allowed), and one for cycling (when cycling is allowed).

liotier commented 12 years ago

I'm not sure about this one : on a highway=pedestrian, bicycle=yes might in fact be a bicycle=designated or a bicycle=permissive - but tagged with a generic bicycle=yes. In the first case you are right and the default speed should be bicycle speed, but in the second case the speed would be somewhere between bicycle and pedestrian - a careful bicyclist among pedestrians. This description might be a case of premature optimization... So here are the safe default I would propose for bicycle=* tags on a highway=pedestrian:

emiltin commented 12 years ago

makes sense, at least if mappers use the tags consistently. i've seen some confusion around when to use no/dismount.

DennisOSRM commented 12 years ago

I'll take these tags into account for the scripting engine based extraction routine.

DennisOSRM commented 12 years ago

Will be fixed with implementation of issue #1. Therefore closing as duplicate.