bicycle routing: punish bad road conditions

Decrease the priority of unpaved/grass roads or tracks with
bad conditions (tracktype4/5).

Also, we need to slow down to pass cycle_barriers.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth 2012-09-14 09:44:39 +02:00
parent 5a863bf8ff
commit b5784fcc83

View file

@ -162,10 +162,17 @@
<obstacle tag="highway" value="traffic_signals" penalty="30"/> <obstacle tag="highway" value="traffic_signals" penalty="30"/>
<obstacle tag="railway" value="crossing" penalty="15"/> <obstacle tag="railway" value="crossing" penalty="15"/>
<obstacle tag="railway" value="level_crossing" penalty="15"/> <obstacle tag="railway" value="level_crossing" penalty="15"/>
<obstacle tag="barrier" value="cycle_barrier" penalty="10"/>
<avoid tag="surface" value="gravel" decreasedPriority="0.2"/>
<avoid tag="surface" value="unpaved" decreasedPriority="0.2"/>
<avoid tag="surface" value="grass" decreasedPriority="0.6"/>
<avoid tag="tracktype" value="grade4" decreasedPriority="0.3"/>
<avoid tag="tracktype" value="grade5" decreasedPriority="0.6"/>
<avoid tag="access" value="private" decreasedPriority="0.1"/>
<avoid tag="bicycle" value="no"/> <avoid tag="bicycle" value="no"/>
</routingProfile> </routingProfile>
<routingProfile name="pedestrian" baseProfile="pedestrian" restrictionsAware="false" minDefaultSpeed="3" maxDefaultSpeed="5" <routingProfile name="pedestrian" baseProfile="pedestrian" restrictionsAware="false" minDefaultSpeed="3" maxDefaultSpeed="5"
leftTurn="0" rightTurn="0" followSpeedLimitations="false" onewayAware="false"> leftTurn="0" rightTurn="0" followSpeedLimitations="false" onewayAware="false">