651 lines
28 KiB
XML
651 lines
28 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<osmand_routing_config defaultProfile="car">
|
|
<!-- 1. parameters of routing and different tweaks Influence on A* : -->
|
|
<!-- f(x) + heuristicCoefficient*g(X) -->
|
|
<!-- TEMPORARY needs to be reverted to 1 -->
|
|
<attribute name="heuristicCoefficient" value="" />
|
|
|
|
<!-- 1.1 tile load parameters (should not affect routing) -->
|
|
<!-- by default 16 -->
|
|
<attribute name="zoomToLoadTiles" value="16" />
|
|
<!-- by default it is 30. Value specified here overwrites all others
|
|
(don't specify here ! it is device dependent) -->
|
|
<attribute name="memoryLimitInMB" value="" />
|
|
<attribute name="nativeMemoryLimitInMB" value="" />
|
|
|
|
<!-- 1.2 Build A* graph in backward/forward direction (can affect results) -->
|
|
<!-- 0 - 2 ways, 1 - direct way, -1 - reverse way -->
|
|
<attribute name="planRoadDirection" value="0" />
|
|
|
|
<!-- 1.3 When there is a query to recalculate route, -->
|
|
<!-- recalculate smart using old route withot N-meters (0 recalculate fresh, default 10km) -->
|
|
<attribute name="recalculateDistanceHelp" value="10000" />
|
|
|
|
<!-- HELP INFORMATION ABOUT FILE -->
|
|
<!-- 1) Highway defines acceptable route for routingProfile, speed in km/h (if it is not specified on level road) -->
|
|
<!-- priority is multiplicator for already passed road (consider it is an accelerator of the road) -->
|
|
<!-- <road tag="highway" value="living_street" speed="25" priority="0.5" dynamicPriority="0.5"/> -->
|
|
<!-- <road tag="route" value="ferry" speed="15" priority="1.0" /> -->
|
|
<!-- 2) Obstacle defines a point of the road and how it could be passed by vehicle -->
|
|
<!-- penalty is measured in time and -1 means it could not be passed! -->
|
|
<!-- <obstacle tag="highway" value="traffic_signals" penalty="35"/> -->
|
|
<!-- 3) Avoid describes what road should be completely avoided or passed with multiplied (decreased) priority -->
|
|
<!-- <avoid tag="access" value="no" decreasedPriority="0.9"/> -->
|
|
<!-- obstacle tag="highway" value="traffic_signals" penalty="35", penalty measured in seconds -->
|
|
<!-- The order of specialization matters only how it was supplied : -->
|
|
<!-- short_way, avoid_ferries, avoid_toll, [prefer_motorway | avoid_motorway], avoid_unpaved -->
|
|
<routingProfile name="car" baseProfile="car" restrictionsAware="true" minDefaultSpeed="45.0" maxDefaultSpeed="130.0"
|
|
leftTurn="5" rightTurn="5" roundaboutTurn="5" onewayAware="true">
|
|
<!--
|
|
<attribute name="heuristicCoefficient" value="1.5" />
|
|
|
|
-->
|
|
<!-- NEW ROUTING API -->
|
|
<parameter id="prefer_motorway" name="Prefer motorways" description="Prefer motorways" type="boolean"/>
|
|
<parameter id="short_way" name="Short way" description="Short way" type="boolean"/>
|
|
<parameter id="avoid_toll" name="Avoid toll roads" description="Avoid toll roads" type="boolean"/>
|
|
<parameter id="avoid_unpaved" name="Avoid unpaved roads" description="Avoid unpaved roads" type="boolean"/>
|
|
<parameter id="avoid_ferries" name="Avoid ferries" description="Avoid ferries" type="boolean"/>
|
|
<parameter id="avoid_motorway" name="Avoid motorways" description="Avoid motorways" type="boolean"/>
|
|
<parameter id="weight" name="Weight" description="Weight" type="numeric" values="0,1500,3000" valueDescriptions="-,1.5t,3t"/>
|
|
|
|
<way attribute="access">
|
|
<select value="-1" t="highway" v="motorway">
|
|
<if param="avoid_motorway"/>
|
|
</select>
|
|
<select value="-1" t="highway" v="motorway_link">
|
|
<if param="avoid_motorway"/>
|
|
</select>
|
|
<select value="-1" t="toll" v="yes">
|
|
<if param="avoid_toll"/>
|
|
</select>
|
|
<select value="-1" t="route" v="ferry">
|
|
<if param="avoid_ferries"/>
|
|
</select>
|
|
<select value="-1" t="highway" v="track">
|
|
<if param="avoid_unpaved"/>
|
|
</select>
|
|
<select value="-1" t="access" v="no"/>
|
|
<select value="-1" t="motorcycle" v="no"/>
|
|
<select value="-1" t="motorcar" v="no"/>
|
|
<select value="-1" t="motor_vehicle" v="no"/>
|
|
<select value="-1" t="vehicle" v="no"/>
|
|
<select value="-1" t="barrier" v="debris"/>
|
|
<select value="-1" t="barrier" v="block"/>
|
|
|
|
<select value="-1" t="maxweight">
|
|
<gt value1=":weight" value2="$maxweight"/>
|
|
</select>
|
|
|
|
<select value="1" t="highway" v="motorway"/>
|
|
<select value="1" t="highway" v="motorway_link"/>
|
|
<select value="1" t="highway" v="trunk"/>
|
|
<select value="1" t="highway" v="trunk_link"/>
|
|
<select value="1" t="highway" v="primary"/>
|
|
<select value="1" t="highway" v="primary_link"/>
|
|
<select value="1" t="highway" v="secondary"/>
|
|
<select value="1" t="highway" v="secondary_link"/>
|
|
<select value="1" t="highway" v="tertiary"/>
|
|
<select value="1" t="highway" v="tertiary_link"/>
|
|
<select value="1" t="highway" v="unclassified"/>
|
|
<select value="1" t="highway" v="road"/>
|
|
<select value="1" t="highway" v="residential"/>
|
|
<select value="1" t="highway" v="track"/>
|
|
<select value="1" t="highway" v="service"/>
|
|
<select value="1" t="highway" v="living_street"/>
|
|
<select value="1" t="route" v="ferry"/>
|
|
<select value="-1"/>
|
|
</way>
|
|
|
|
<way attribute="oneway">
|
|
<select value="1" t="oneway" v="yes"/>
|
|
<select value="-1" t="oneway" v="reverse"/>
|
|
<select value="1" t="oneway" v="1"/>
|
|
<select value="1" t="oneway" v="+1"/>
|
|
<select value="-1" t="oneway" v="-1"/>
|
|
</way>
|
|
|
|
|
|
<way attribute="speed">
|
|
<ifnot param="short_way">
|
|
<select value="$maxspeed" t="maxspeed"/>
|
|
<select value="110" t="highway" v="motorway"/>
|
|
<select value="110" t="highway" v="motorway_link"/>
|
|
<select value="100" t="highway" v="trunk"/>
|
|
<select value="75" t="highway" v="trunk_link"/>
|
|
<!-- generally linking larger towns. -->
|
|
<select value="65" t="highway" v="primary"/>
|
|
<select value="50" t="highway" v="primary_link"/>
|
|
<!-- generally linking smaller towns and villages -->
|
|
<select value="60" t="highway" v="secondary"/>
|
|
<select value="50" t="highway" v="secondary_link"/>
|
|
<!-- important urban roads -->
|
|
<select value="45" t="highway" v="tertiary"/>
|
|
<select value="40" t="highway" v="tertiary_link"/>
|
|
<!-- lowest form of grid network, usually 90% of urban roads -->
|
|
<select value="35" t="highway" v="unclassified"/>
|
|
<!-- road = no type, no review and may be not accurate -->
|
|
<select value="35" t="highway" v="road"/>
|
|
<select value="35" t="highway" v="residential"/>
|
|
|
|
<select value="15" t="highway" v="track"/>
|
|
</ifnot>
|
|
|
|
<select value="30" t="highway" v="service"/>
|
|
<select value="25" t="highway" v="living_street"/>
|
|
<select value="15" t="route" v="ferry"/>
|
|
|
|
<if param="short_way">
|
|
<select value="45"/>
|
|
</if>
|
|
</way>
|
|
|
|
<way attribute="priority">
|
|
<select value="1.4" t="highway" v="motorway">
|
|
<if param="prefer_motorway"/>
|
|
</select>
|
|
<select value="1.3" t="highway" v="trunk">
|
|
<if param="prefer_motorway"/>
|
|
</select>
|
|
<!-- access deprioritize -->
|
|
<select t="tracktype" v="grade5" value="0.1"/>
|
|
<select t="access" v="private" value="0.05"/>
|
|
<select t="access" v="destination" value="0.05"/>
|
|
<select t="motor_vehicle" v="private" value="0.05"/>
|
|
<select t="motorcar" v="destination" value="0.05"/>
|
|
<select t="motorcycle" v="destination" value="0.05"/>
|
|
|
|
<select value="1.2" t="highway" v="motorway"/>
|
|
<select value="1.2" t="highway" v="motorway_link"/>
|
|
<select value="1" t="highway" v="trunk"/>
|
|
<select value="1" t="highway" v="trunk_link"/>
|
|
<!-- generally linking larger towns. -->
|
|
<select value="1.05" t="highway" v="primary"/>
|
|
<select value="1.05" t="highway" v="primary_link"/>
|
|
<!-- generally linking smaller towns and villages -->
|
|
<select value="1" t="highway" v="secondary"/>
|
|
<select value="1" t="highway" v="secondary_link"/>
|
|
<!-- important urban roads -->
|
|
<select value="0.95" t="highway" v="tertiary"/>
|
|
<select value="0.95" t="highway" v="tertiary_link"/>
|
|
<!-- lowest form of grid network, usually 90% of urban roads -->
|
|
<select value="0.7" t="highway" v="unclassified"/>
|
|
<!-- road = no type, no review and may be not accurate -->
|
|
<select value="0.7" t="highway" v="road"/>
|
|
<select value="0.7" t="highway" v="residential"/>
|
|
|
|
<select value="0.3" t="highway" v="track"/>
|
|
|
|
<select value="0.5" t="highway" v="service"/>
|
|
<select value="0.5" t="highway" v="living_street"/>
|
|
<select value="1" t="route" v="ferry"/>
|
|
|
|
<select value="0.7"/>
|
|
</way>
|
|
|
|
<point attribute="obstacle_time">
|
|
<select value="25" t="barrier"/>
|
|
<select value="10" t="traffic_calming"/>
|
|
<select value="25" t="highway" v="traffic_signals"/>
|
|
<select value="15" t="highway" v="stop"/>
|
|
<select value="10" t="highway" v="give_way"/>
|
|
<select t="highway" v="ford" value="25"/>
|
|
<select t="ford" value="25"/>
|
|
|
|
<select t="railway" v="crossing" value="25" />
|
|
<select t="railway" v="level_crossing" value="25"/>
|
|
</point>
|
|
|
|
<point attribute="obstacle">
|
|
<select value="-1" t="motorcar" v="no" />
|
|
<select value="-1" t="motor_vehicle" v="no" />
|
|
<select value="1000" t="barrier" v="bollard" />
|
|
<select value="1000" t="barrier" v="gate"/>
|
|
<select value="1000" t="barrier" v="lift_gate" />
|
|
<select value="1000" t="barrier" v="guard_rail" />
|
|
<select value="10" t="traffic_calming"/>
|
|
|
|
<select t="highway" v="ford" value="25"/>
|
|
<select t="ford" value="25"/>
|
|
</point>
|
|
|
|
|
|
<!-- OLD ROUTING API -->
|
|
|
|
<attribute name="followSpeedLimitations" value="true">
|
|
<specialization input="short_way" value="false"/>
|
|
</attribute>
|
|
<road tag="highway" value="motorway" speed="110" priority="1.2">
|
|
<specialization input="avoid_motorway" speed="0"/>
|
|
<specialization input="prefer_motorway" priority="1.4"/>
|
|
<specialization input="short_way" speed="50" priority="1"/>
|
|
</road>
|
|
<road tag="highway" value="motorway_link" speed="80" priority="1.2" >
|
|
<specialization input="avoid_motorway" speed="0"/>
|
|
<specialization input="short_way" speed="50" priority="1"/>
|
|
</road>
|
|
|
|
<road tag="highway" value="trunk" speed="100" priority="1.2" >
|
|
<specialization input="prefer_motorway" priority="1.3"/>
|
|
<specialization input="short_way" speed="50" priority="1"/>
|
|
</road>
|
|
<road tag="highway" value="trunk_link" speed="75" priority="1.2" >
|
|
<specialization input="short_way" speed="50" priority="1"/>
|
|
</road>
|
|
|
|
<!-- generally linking larger towns. -->
|
|
<road tag="highway" value="primary" speed="65" priority="1.05" >
|
|
<specialization input="short_way" speed="50"/>
|
|
</road>
|
|
<road tag="highway" value="primary_link" speed="50" priority="1.05" >
|
|
<specialization input="short_way" speed="50" priority="1"/>
|
|
</road>
|
|
|
|
<!-- generally linking smaller towns and villages -->
|
|
<road tag="highway" value="secondary" speed="60" priority="1" >
|
|
<specialization input="short_way" speed="50" priority="1"/>
|
|
</road>
|
|
<road tag="highway" value="secondary_link" speed="50" priority="1" >
|
|
<specialization input="short_way" speed="50" priority="1"/>
|
|
</road>
|
|
<!-- important urban roads -->
|
|
<road tag="highway" value="tertiary" speed="45" priority="0.95" />
|
|
<road tag="highway" value="tertiary_link" speed="40" priority="0.95" />
|
|
<!-- lowest form of grid network, usually 90% of urban roads -->
|
|
<road tag="highway" value="unclassified" speed="35" priority="0.7" >
|
|
<specialization input="short_way" priority="1" speed="45"/>
|
|
</road>
|
|
<!-- road = no type, no review and may be not accurate -->
|
|
<road tag="highway" value="road" speed="35" priority="0.7" >
|
|
<specialization input="short_way" priority="1" speed="45"/>
|
|
</road>
|
|
<!-- primarily for access to properties, small roads with 1/2 intersections -->
|
|
<road tag="highway" value="residential" speed="35" priority="0.7" >
|
|
<specialization input="short_way" priority="1" speed="45"/>
|
|
</road>
|
|
<!-- parking + private roads -->
|
|
<road tag="highway" value="service" speed="30" priority="0.5" >
|
|
<specialization input="short_way" priority="1" speed="45"/>
|
|
</road>
|
|
<!-- very bad roads -->
|
|
<road tag="highway" value="track" speed="15" priority="0.3" >
|
|
<specialization input="short_way" priority="0.7" speed="45" />
|
|
<specialization input="avoid_unpaved" priority="0.1"/>
|
|
</road>
|
|
|
|
<!-- too small for cars usually -->
|
|
<road tag="highway" value="living_street" speed="25" priority="0.5" >
|
|
<specialization input="short_way" priority="1" speed="35"/>
|
|
</road>
|
|
<!-- car are able to enter in highway=pedestrian with restrictions -->
|
|
<!-- Time actually is uknown. Currently unsupported -->
|
|
<road tag="route" value="ferry" speed="15" priority="1.0" >
|
|
<specialization input="avoid_ferries" speed="0"/>
|
|
</road>
|
|
|
|
<!-- usually traffic_signals are not that bad.
|
|
It is usuall better to pass via secondary route with TS then residential -->
|
|
<obstacle tag="traffic_calming" value="" penalty="8" routingPenalty="10"/>
|
|
<obstacle tag="highway" value="traffic_signals" penalty="25" routingPenalty="5"/>
|
|
|
|
<obstacle tag="highway" value="stop" penalty="15" routingPenalty="3"/>
|
|
<obstacle tag="highway" value="give_way" penalty="7"/>
|
|
<obstacle tag="highway" value="ford" penalty="25"/>
|
|
<obstacle tag="ford" value="" penalty="25"/>
|
|
<obstacle tag="railway" value="crossing" penalty="25" routingPenalty="5"/>
|
|
<obstacle tag="railway" value="level_crossing" penalty="25" routingPenalty="5"/>
|
|
<obstacle tag="motorcar" value="no" penalty="-1"/>
|
|
<obstacle tag="barrier" value="bollard" routingPenalty="1000" penalty="25"/>
|
|
<obstacle tag="barrier" value="gate" routingPenalty="1000" penalty="25"/>
|
|
<obstacle tag="barrier" value="lift_gate" routingPenalty="1000" penalty="25"/>
|
|
<obstacle tag="barrier" value="guard_rail" routingPenalty="1000" penalty="25"/>
|
|
|
|
<avoid tag="tracktype" value="grade5" decreasedPriority="0.6"/>
|
|
|
|
<avoid tag="access" value="private" decreasedPriority="0.1"/>
|
|
<avoid tag="motor_vehicle" value="private" decreasedPriority="0.1"/>
|
|
|
|
<avoid tag="motorcar" value="destination" decreasedPriority="0.1"/>
|
|
<avoid tag="motorcycle" value="destination" decreasedPriority="0.1"/>
|
|
<avoid tag="access" value="destination" decreasedPriority="0.1"/>
|
|
|
|
<avoid tag="access" value="no"/>
|
|
<avoid tag="motorcycle" value="no"/>
|
|
<avoid tag="motorcar" value="no"/>
|
|
<avoid tag="motor_vehicle" value="no"/>
|
|
<avoid tag="vehicle" value="no"/>
|
|
<avoid tag="motorcar" value="no"/>
|
|
<avoid tag="barrier" value="debris"/>
|
|
<avoid tag="barrier" value="block"/>
|
|
|
|
<avoid tag="toll" value="yes" decreasedPriority="1">
|
|
<specialization input="avoid_toll"/>
|
|
</avoid>
|
|
</routingProfile>
|
|
|
|
<routingProfile name="bicycle" baseProfile="bicycle" restrictionsAware="true" minDefaultSpeed="7" maxDefaultSpeed="16"
|
|
leftTurn="0" rightTurn="0" followSpeedLimitations="false" onewayAware="true">
|
|
<!-- <attribute name="relaxNodesIfStartDistSmallCoeff" value="2.5"/> -->
|
|
<!-- New ROUTING API -->
|
|
<parameter id="avoid_motorway" name="Avoid motorways" description="Avoid motorways" type="boolean"/>
|
|
|
|
<way attribute="access">
|
|
<if param="avoid_motorway">
|
|
<select value="-1" t="highway" v="motorway"/>
|
|
<select value="-1" t="highway" v="motorway_link"/>
|
|
<select value="-1" t="highway" v="trunk"/>
|
|
<select value="-1" t="highway" v="trunk_link"/>
|
|
</if>
|
|
<!-- <select value="-1" t="access" v="no"/> -->
|
|
<select value="-1" t="bicycle" v="no"/>
|
|
|
|
<select value="1" t="highway" v="motorway"/>
|
|
<select value="1" t="highway" v="motorway_link"/>
|
|
<select value="1" t="highway" v="trunk"/>
|
|
<select value="1" t="highway" v="trunk_link"/>
|
|
<select value="1" t="highway" v="primary"/>
|
|
<select value="1" t="highway" v="primary_link"/>
|
|
<select value="1" t="highway" v="secondary"/>
|
|
<select value="1" t="highway" v="secondary_link"/>
|
|
<select value="1" t="highway" v="tertiary"/>
|
|
<select value="1" t="highway" v="tertiary_link"/>
|
|
<select value="1" t="highway" v="road"/>
|
|
<select value="1" t="highway" v="residential"/>
|
|
<select value="1" t="highway" v="cycleway"/>
|
|
<select value="1" t="highway" v="unclassified"/>
|
|
<select value="1" t="highway" v="service"/>
|
|
<select value="1" t="highway" v="track"/>
|
|
<select value="1" t="highway" v="path"/>
|
|
<select value="1" t="highway" v="living_street"/>
|
|
<select value="1" t="highway" v="pedestrian"/>
|
|
<select value="1" t="highway" v="footway"/>
|
|
<select value="1" t="highway" v="byway"/>
|
|
<select value="1" t="highway" v="services"/>
|
|
<select value="1" t="highway" v="bridleway"/>
|
|
<select value="1" t="highway" v="steps"/>
|
|
|
|
<select value="-1"/>
|
|
</way>
|
|
|
|
<way attribute="oneway">
|
|
<select value="-1" t="cycleway" v="opposite_lane"/>
|
|
<select value="-1" t="cycleway" v="opposite"/>
|
|
<select value="0" t="oneway:bicycle" v="no"/>
|
|
<select value="-1" t="oneway" v="reverse"/>
|
|
<select value="1" t="oneway" v="1"/>
|
|
<select value="1" t="oneway" v="+1"/>
|
|
<select value="-1" t="oneway" v="-1"/>
|
|
<select value="1" t="roundabout" />
|
|
<select value="1" t="junction" v="roundabout" />
|
|
</way>
|
|
|
|
<way attribute="speed">
|
|
<select value="16" t="highway" v="cycleway"/>
|
|
<select value="13" t="highway" v="unclassified"/>
|
|
<select value="13" t="highway" v="service"/>
|
|
<select value="12" t="highway" v="track"/>
|
|
<select value="12" t="highway" v="path"/>
|
|
<select value="15" t="highway" v="living_street"/>
|
|
<select value="10" t="highway" v="pedestrian"/>
|
|
<select value="8" t="highway" v="footway"/>
|
|
<select value="8" t="highway" v="byway"/>
|
|
<select value="13" t="highway" v="services"/>
|
|
<select value="8" t="highway" v="bridleway"/>
|
|
<select value="3" t="highway" v="steps"/>
|
|
<select value="16"/>
|
|
</way>
|
|
|
|
|
|
<way attribute="priority">
|
|
<select value="0.3" t="surface" v="gravel"/>
|
|
<select value="0.3" t="surface" v="unpaved"/>
|
|
<select value="0.6" t="surface" v="grass"/>
|
|
<select value="0.3" t="tracktype" v="grade4"/>
|
|
<select value="0.6" t="tracktype" v="grade5"/>
|
|
<select value="0.1" t="access" v="private"/>
|
|
<select value="0.1" t="barrier" v="debris"/>
|
|
<select value="0.1" t="barrier" v="block"/>
|
|
|
|
|
|
<select value="1.5" t="highway" v="cycleway"/>
|
|
|
|
<select value="0.4" t="highway" v="motorway"/>
|
|
<select value="0.4" t="highway" v="motorway_link"/>
|
|
<select value="0.4" t="highway" v="trunk"/>
|
|
<select value="0.4" t="highway" v="trunk_link"/>
|
|
<select value="0.8" t="highway" v="primary"/>
|
|
<select value="0.8" t="highway" v="primary_link"/>
|
|
<select value="1" t="highway" v="secondary"/>
|
|
<select value="1" t="highway" v="secondary_link"/>
|
|
<select value="1" t="highway" v="tertiary"/>
|
|
<select value="1" t="highway" v="tertiary_link"/>
|
|
<select value="1" t="highway" v="road"/>
|
|
<select value="1.1" t="highway" v="residential"/>
|
|
<select value="1.5" t="highway" v="cycleway"/>
|
|
<select value="1" t="highway" v="unclassified"/>
|
|
<select value="1" t="highway" v="service"/>
|
|
<select value="1.5" t="highway" v="track"/>
|
|
<select value="1.5" t="highway" v="path"/>
|
|
<select value="1.1" t="highway" v="living_street"/>
|
|
<select value="0.9" t="highway" v="pedestrian"/>
|
|
<select value="0.9" t="highway" v="footway"/>
|
|
<select value="1" t="highway" v="byway"/>
|
|
<select value="1" t="highway" v="services"/>
|
|
<select value="0.8" t="highway" v="bridleway"/>
|
|
<select value="0.5" t="highway" v="steps"/>
|
|
|
|
</way>
|
|
|
|
<point attribute="obstacle_time">
|
|
<select value="10" t="barrier" v="cycle_barrier"/>
|
|
<select value="5" t="barrier"/>
|
|
<select value="25" t="highway" v="traffic_signals"/>
|
|
<select value="15" t="highway" v="stop"/>
|
|
<select value="7" t="highway" v="give_way"/>
|
|
<select value="25" t="highway" v="ford" />
|
|
<select value="25" t="ford" />
|
|
|
|
<select value="25" t="railway" v="crossing" />
|
|
<select value="25" t="railway" v="level_crossing"/>
|
|
</point>
|
|
|
|
<point attribute="obstacle">
|
|
<select value="-1" t="bicycle" v="no"/>
|
|
<select value="10" t="barrier" v="cycle_barrier"/>
|
|
<select value="5" t="barrier"/>
|
|
<select value="10" t="highway" v="traffic_signals"/>
|
|
<select value="10" t="highway" v="stop"/>
|
|
<select value="7" t="highway" v="give_way"/>
|
|
<select value="25" t="highway" v="ford" />
|
|
<select value="25" t="ford" />
|
|
</point>
|
|
|
|
|
|
|
|
<!-- OLD Routing API -->
|
|
|
|
<road tag="highway" value="motorway" speed="16" priority="0.4" >
|
|
<specialization input="avoid_motorway" speed="0"/>
|
|
</road>
|
|
<road tag="highway" value="motorway_link" speed="16" priority="0.4" >
|
|
<specialization input="avoid_motorway" speed="0"/>
|
|
</road>
|
|
|
|
<road tag="highway" value="trunk" speed="16" priority="0.4" >
|
|
<specialization input="avoid_motorway" speed="0"/>
|
|
</road>
|
|
<road tag="highway" value="trunk_link" speed="16" priority="0.4">
|
|
<specialization input="avoid_motorway" speed="0"/>
|
|
</road>
|
|
<road tag="highway" value="primary" speed="16" priority="0.8" />
|
|
<road tag="highway" value="primary_link" speed="16" priority="0.8" />
|
|
<road tag="highway" value="secondary" speed="16" priority="1" />
|
|
<road tag="highway" value="secondary_link" speed="16" priority="1" />
|
|
<road tag="highway" value="tertiary" speed="16" priority="1" />
|
|
<road tag="highway" value="tertiary_link" speed="16" priority="1" />
|
|
<road tag="highway" value="road" speed="16" priority="1" />
|
|
<road tag="highway" value="residential" speed="16" priority="1.1" />
|
|
<road tag="highway" value="cycleway" speed="16" priority="1.5" />
|
|
|
|
<road tag="highway" value="unclassified" speed="13" priority="1" />
|
|
<road tag="highway" value="service" speed="13" priority="1" />
|
|
<road tag="highway" value="track" speed="12" priority="1.5" />
|
|
<road tag="highway" value="path" speed="12" priority="1.5" />
|
|
<road tag="highway" value="living_street" speed="15" priority="1.1" />
|
|
<road tag="highway" value="pedestrian" speed="10" priority="0.9" />
|
|
<road tag="highway" value="footway" speed="8" priority="0.9" />
|
|
<road tag="highway" value="byway" speed="8" priority="1" />
|
|
<road tag="highway" value="services" speed="13" priority="1" />
|
|
<road tag="highway" value="bridleway" speed="8" priority="0.8" />
|
|
<road tag="highway" value="steps" speed="3" priority="0.5" />
|
|
|
|
<obstacle tag="highway" value="traffic_signals" penalty="25" routingPenalty="10"/>
|
|
<obstacle tag="highway" value="stop" penalty="15" routingPenalty="1"/>
|
|
<obstacle tag="highway" value="give_way" penalty="7"/>
|
|
<obstacle tag="highway" value="ford" penalty="15"/>
|
|
<obstacle tag="ford" value="" penalty="15"/>
|
|
<obstacle tag="railway" value="crossing" penalty="5"/>
|
|
<obstacle tag="railway" value="level_crossing" penalty="5"/>
|
|
<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="barrier" value="debris" decreasedPriority="0.1"/>
|
|
<avoid tag="barrier" value="block" decreasedPriority="0.1"/>
|
|
<avoid tag="bicycle" value="no"/>
|
|
</routingProfile>
|
|
|
|
<routingProfile name="pedestrian" baseProfile="pedestrian" restrictionsAware="false" minDefaultSpeed="3" maxDefaultSpeed="5"
|
|
leftTurn="0" rightTurn="0" followSpeedLimitations="false" onewayAware="false">
|
|
|
|
<attribute name="heuristicCoefficient" value="1.2" />
|
|
<!-- NEW ROUTING API -->
|
|
<parameter id="avoid_motorway" name="Avoid motorways" description="Avoid motorways" type="boolean"/>
|
|
|
|
<way attribute="access">
|
|
<if param="avoid_motorway">
|
|
<select value="-1" t="highway" v="motorway"/>
|
|
<select value="-1" t="highway" v="motorway_link"/>
|
|
<select value="-1" t="highway" v="trunk"/>
|
|
<select value="-1" t="highway" v="trunk_link"/>
|
|
</if>
|
|
<select value="-1" t="foot" v="no"/>
|
|
<select value="-1" t="pedestrian" v="no"/>
|
|
|
|
<select value="1" t="highway" v="motorway"/>
|
|
<select value="1" t="highway" v="motorway_link"/>
|
|
<select value="1" t="highway" v="trunk"/>
|
|
<select value="1" t="highway" v="trunk_link"/>
|
|
<select value="1" t="highway" v="primary"/>
|
|
<select value="1" t="highway" v="primary_link"/>
|
|
<select value="1" t="highway" v="secondary"/>
|
|
<select value="1" t="highway" v="secondary_link"/>
|
|
<select value="1" t="highway" v="tertiary"/>
|
|
<select value="1" t="highway" v="tertiary_link"/>
|
|
<select value="1" t="highway" v="road"/>
|
|
<select value="1" t="highway" v="residential"/>
|
|
<select value="1" t="highway" v="cycleway"/>
|
|
<select value="1" t="highway" v="unclassified"/>
|
|
<select value="1" t="highway" v="service"/>
|
|
<select value="1" t="highway" v="track"/>
|
|
<select value="1" t="highway" v="path"/>
|
|
<select value="1" t="highway" v="living_street"/>
|
|
<select value="1" t="highway" v="pedestrian"/>
|
|
<select value="1" t="highway" v="footway"/>
|
|
<select value="1" t="highway" v="byway"/>
|
|
<select value="1" t="highway" v="services"/>
|
|
<select value="1" t="highway" v="bridleway"/>
|
|
<select value="1" t="highway" v="steps"/>
|
|
|
|
<select value="-1"/>
|
|
</way>
|
|
|
|
<way attribute="oneway">
|
|
</way>
|
|
|
|
<way attribute="speed">
|
|
<select value="4" t="highway" v="steps"/>
|
|
<select value="5"/>
|
|
</way>
|
|
|
|
<way attribute="priority">
|
|
<select value="0.7" t="highway" v="motorway"/>
|
|
<select value="0.7" t="highway" v="motorway_link"/>
|
|
<select value="0.7" t="highway" v="trunk"/>
|
|
<select value="0.7" t="highway" v="trunk_link"/>
|
|
<select value="0.9" t="highway" v="primary"/>
|
|
<select value="0.9" t="highway" v="primary_link"/>
|
|
<select value="1.2" t="highway" v="pedestrian"/>
|
|
<select value="1.2" t="highway" v="footway"/>
|
|
<select value="0.8" t="highway" v="bridleway"/>
|
|
<select value="1.2" t="highway" v="steps"/>
|
|
|
|
<select value="1"/>
|
|
</way>
|
|
|
|
<point attribute="obstacle_time">
|
|
<select value="25" t="highway" v="traffic_signals"/>
|
|
<select value="15" t="highway" v="ford" />
|
|
<select value="15" t="ford" />
|
|
<select value="15" t="railway" v="crossing" />
|
|
<select value="15" t="railway" v="level_crossing"/>
|
|
</point>
|
|
|
|
<point attribute="obstacle">
|
|
<select value="-1" t="foot" v="no"/>
|
|
<select value="-1" t="pedestrian" v="no"/>
|
|
|
|
<select value="10" t="highway" v="traffic_signals"/>
|
|
</point>
|
|
|
|
|
|
<!-- OLD Routing API -->
|
|
|
|
<road tag="highway" value="motorway" speed="5" priority="0.7" >
|
|
<specialization input="avoid_motorway" speed="0"/>
|
|
</road>
|
|
<road tag="highway" value="motorway_link" speed="5" priority="0.7" >
|
|
<specialization input="avoid_motorway" speed="0"/>
|
|
</road>
|
|
|
|
<road tag="highway" value="trunk" speed="5" priority="0.7" />
|
|
<road tag="highway" value="trunk_link" speed="5" priority="0.7" />
|
|
<road tag="highway" value="primary" speed="5" priority="0.9" />
|
|
<road tag="highway" value="primary_link" speed="5" priority="0.9" />
|
|
<road tag="highway" value="secondary" speed="5" priority="1" />
|
|
<road tag="highway" value="secondary_link" speed="5" priority="1" />
|
|
<road tag="highway" value="tertiary" speed="5" priority="1" />
|
|
<road tag="highway" value="tertiary_link" speed="5" priority="1" />
|
|
<road tag="highway" value="road" speed="5" priority="1" />
|
|
<road tag="highway" value="residential" speed="5" priority="1" />
|
|
<road tag="highway" value="cycleway" speed="5" priority="1" />
|
|
|
|
<road tag="highway" value="unclassified" speed="5" priority="1" />
|
|
<road tag="highway" value="service" speed="5" priority="1" />
|
|
<road tag="highway" value="track" speed="5" priority="1" />
|
|
<road tag="highway" value="path" speed="5" priority="1" />
|
|
<road tag="highway" value="living_street" speed="5" priority="1" />
|
|
<road tag="highway" value="pedestrian" speed="5" priority="1.2" />
|
|
<road tag="highway" value="footway" speed="5" priority="1.2" />
|
|
<road tag="highway" value="byway" speed="5" priority="1" />
|
|
<road tag="highway" value="services" speed="5" priority="1" />
|
|
<road tag="highway" value="bridleway" speed="5" priority="0.8" />
|
|
<road tag="highway" value="steps" speed="4" priority="1.2" />
|
|
|
|
<obstacle tag="highway" value="ford" penalty="15"/>
|
|
<obstacle tag="ford" value="" penalty="15"/>
|
|
<obstacle tag="highway" value="traffic_signals" penalty="30"/>
|
|
<obstacle tag="railway" value="crossing" penalty="15"/>
|
|
<obstacle tag="railway" value="level_crossing" penalty="15"/>
|
|
<obstacle tag="barrier" value="debris" penalty="15"/>
|
|
<obstacle tag="barrier" value="block" penalty="15"/>
|
|
|
|
<avoid tag="foot" value="no"/>
|
|
<avoid tag="pedestrian" value="no"/>
|
|
</routingProfile>
|
|
|
|
</osmand_routing_config>
|