User:Hubert87/routing

From OpenStreetMap Wiki
Jump to: navigation, search

routing.xml

<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=""></attribute>
  <!-- 1.1 tile load parameters (should not affect routing) -->
  <!-- by default 16 -->
  <attribute name="zoomToLoadTiles" value="16"></attribute>
  <!--  by default it is 30. Value specified here overwrites all others
			 (don't specify here ! it is device dependent)  -->
  <attribute name="memoryLimitInMB" value=""></attribute>
  <attribute name="nativeMemoryLimitInMB" value=""></attribute>
  <!-- 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"></attribute>
  <!-- 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"></attribute>
  <!-- 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"/>, penalty measured in seconds  -->
  <!-- 3) Avoid describes what road should be completely avoided or passed with multiplied (decreased) priority  -->
  <!-- 			<avoid tag="access" value="no" decreasedPriority="0.9"/> -->
  <!-- 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>
    <parameter id="short_way" name="Short way" description="Short way" type="boolean"></parameter>
    <parameter id="avoid_toll" name="Avoid toll roads" description="Avoid toll roads" type="boolean"></parameter>
    <parameter id="avoid_unpaved" name="Avoid unpaved roads" description="Avoid unpaved roads" type="boolean"></parameter>
    <parameter id="avoid_ferries" name="Avoid ferries" description="Avoid ferries" type="boolean"></parameter>
    <parameter id="avoid_motorway" name="Avoid motorways" description="Avoid motorways" type="boolean"></parameter>
    <parameter id="weight" name="Weight" description="Weight" type="numeric" values="0,1500,3000" valueDescriptions="-,1.5t,3t"></parameter>
    <way attribute="access">
      <select value="-1" t="highway" v="motorway">
        <if param="avoid_motorway"></if>
      </select>
      <select value="-1" t="highway" v="motorway_link">
        <if param="avoid_motorway"></if>
      </select>
      <select value="-1" t="toll" v="yes">
        <if param="avoid_toll"></if>
      </select>
      <select value="-1" t="route" v="ferry">
        <if param="avoid_ferries"></if>
      </select>
      <if param="avoid_unpaved">
        <select value="-1" t="highway" v="track"></select>
        <select value="-1" t="surface" v="unpaved"></select>
        <select value="-1" t="surface" v="compacted"></select>
        <select value="-1" t="surface" v="dirt"></select>
        <select value="-1" t="surface" v="earth"></select>
        <select value="-1" t="surface" v="gravel"></select>
        <select value="-1" t="surface" v="fine_gravel"></select>
        <select value="-1" t="surface" v="grass"></select>
        <select value="-1" t="surface" v="ground"></select>
        <select value="-1" t="surface" v="mud"></select>
        <select value="-1" t="surface" v="pebblestone"></select>
        <select value="-1" t="surface" v="sand"></select>
        <select value="-1" t="surface" v="wood"></select>
      </if>
      <select value="-1" t="access" v="no"></select>
      <!-- introduce special tag motorcycle ! -->
      <!-- <select value="-1" t="motorcycle" v="no"/>-->
      <select value="-1" t="motorcar" v="no"></select>
      <select value="-1" t="motor_vehicle" v="no"></select>
      <select value="-1" t="motor_vehicle" v="agricultural"></select>
      <select value="-1" t="vehicle" v="no"></select>
      <select value="-1" t="barrier" v="bollard"></select>
      <select value="-1" t="barrier" v="chain"></select>
      <select value="-1" t="barrier" v="debris"></select>
      <select value="-1" t="barrier" v="block"></select>
      <select value="-1" t="maxweight">
        <gt value1=":weight" value2="$maxweight" type="weight"></gt>
      </select>
      <select value="1" t="highway" v="motorway"></select>
      <select value="1" t="highway" v="motorway_link"></select>
      <select value="1" t="highway" v="trunk"></select>
      <select value="1" t="highway" v="trunk_link"></select>
      <select value="1" t="highway" v="primary"></select>
      <select value="1" t="highway" v="primary_link"></select>
      <select value="1" t="highway" v="secondary"></select>
      <select value="1" t="highway" v="secondary_link"></select>
      <select value="1" t="highway" v="tertiary"></select>
      <select value="1" t="highway" v="tertiary_link"></select>
      <select value="1" t="highway" v="unclassified"></select>
      <select value="1" t="highway" v="road"></select>
      <select value="1" t="highway" v="residential"></select>
      <select value="1" t="highway" v="track"></select>
      <select value="1" t="highway" v="service"></select>
      <select value="1" t="highway" v="living_street"></select>
      <select value="1" t="route" v="ferry"></select>
      <select value="-1"></select>
    </way>
    <way attribute="oneway">
      <select value="1" t="oneway" v="yes"></select>
      <select value="-1" t="oneway" v="reverse"></select>
      <select value="1" t="oneway" v="1"></select>
      <select value="1" t="oneway" v="+1"></select>
      <select value="-1" t="oneway" v="-1"></select>
      <select value="1" t="roundabout"></select>
      <select value="1" t="junction" v="roundabout"></select>
    </way>
    <way attribute="speed" type="speed">
      <!-- shortway handled internally -->
      <select value="$maxspeed:practical" t="maxspeed:practical"></select>
      <select value="$maxspeed" t="maxspeed"></select>
      <select value="110" t="highway" v="motorway"></select>
      <select value="110" t="highway" v="motorway_link"></select>
      <select value="100" t="highway" v="trunk"></select>
      <select value="75" t="highway" v="trunk_link"></select>
      <!-- generally linking larger towns. -->
      <select value="65" t="highway" v="primary"></select>
      <select value="50" t="highway" v="primary_link"></select>
      <!-- generally linking smaller towns and villages -->
      <select value="60" t="highway" v="secondary"></select>
      <select value="50" t="highway" v="secondary_link"></select>
      <!-- important urban roads -->
      <select value="45" t="highway" v="tertiary"></select>
      <select value="40" t="highway" v="tertiary_link"></select>
      <!-- lowest form of grid network, usually 90% of urban roads -->
      <select value="35" t="highway" v="unclassified"></select>
      <!-- road = no type, no review and may be not accurate -->
      <select value="35" t="highway" v="road"></select>
      <select value="35" t="highway" v="residential"></select>
      <select value="15" t="highway" v="track"></select>
      <select value="30" t="highway" v="service"></select>
      <select value="25" t="highway" v="living_street"></select>
      <select value="15" t="route" v="ferry"></select>
    </way>
    <way attribute="priority">
      <select value="1.25" t="highway" v="motorway">
        <if param="prefer_motorway"></if>
      </select>
      <select value="1.25" t="highway" v="trunk">
        <if param="prefer_motorway"></if>
      </select>
      <!-- access deprioritize -->
      <select t="tracktype" v="grade5" value="0.1"></select>
      <select t="access" v="private" value="0.05"></select>
      <select t="access" v="destination" value="0.05"></select>
      <select t="motor_vehicle" v="private" value="0.05"></select>
      <select t="motorcar" v="destination" value="0.05"></select>
      <select t="motorcycle" v="destination" value="0.05"></select>
      <select value="1.1" t="highway" v="motorway"></select>
      <select value="0.8" t="highway" v="motorway_link"></select>
      <select value="1" t="highway" v="trunk"></select>
      <select value="0.8" t="highway" v="trunk_link"></select>
      <!-- generally linking larger towns. -->
      <select value="1.0" t="highway" v="primary"></select>
      <select value="0.8" t="highway" v="primary_link"></select>
      <!-- generally linking smaller towns and villages -->
      <select value="0.95" t="highway" v="secondary"></select>
      <select value="0.7" t="highway" v="secondary_link"></select>
      <!-- important urban roads -->
      <select value="0.9" t="highway" v="tertiary"></select>
      <select value="0.7" t="highway" v="tertiary_link"></select>
      <!-- lowest form of grid network, usually 90% of urban roads -->
      <select value="0.7" t="highway" v="unclassified"></select>
      <!-- road = no type, no review and may be not accurate -->
      <select value="0.7" t="highway" v="road"></select>
      <select value="0.7" t="highway" v="residential"></select>
      <select value="0.3" t="highway" v="track"></select>
      <select value="0.5" t="highway" v="service"></select>
      <select value="0.5" t="highway" v="living_street"></select>
      <select value="1" t="route" v="ferry"></select>
      <select value="0.7"></select>
    </way>
    <point attribute="obstacle_time">
      <select value="25" t="barrier"></select>
      <select value="10" t="traffic_calming"></select>
      <select value="30" t="highway" v="traffic_signals"></select>
      <select value="15" t="highway" v="crossing"></select>
      <select value="15" t="highway" v="stop"></select>
      <select value="10" t="highway" v="give_way"></select>
      <select value="25" t="barrier" v="toll_booth"></select>
      <select value="25" t="highway" v="ford"></select>
      <select value="25" t="ford"></select>
      <select t="railway" v="crossing" value="25"></select>
      <select t="railway" v="level_crossing" value="25"></select>
    </point>
    <point attribute="obstacle">
      <select value="-1" t="motorcar" v="no"></select>
      <select value="-1" t="motor_vehicle" v="no"></select>
      <select value="300" t="barrier" v="bollard"></select>
      <select value="300" t="barrier" v="gate"></select>
      <select value="300" t="barrier" v="lift_gate"></select>
      <select value="300" t="barrier" v="guard_rail"></select>
      <select value="10" t="traffic_calming"></select>
      <select t="highway" v="ford" value="25"></select>
      <select t="ford" value="25"></select>
    </point>
  </routingProfile>
  
  <routingProfile name="bicycle" baseProfile="bicycle" restrictionsAware="true" minDefaultSpeed="10" maxDefaultSpeed="30" leftTurn="0" rightTurn="0" followSpeedLimitations="false" onewayAware="true">
    <parameter id="avoid_ferries" name="Avoid ferries" description="Avoid ferries" type="boolean"></parameter>
    <parameter id="avoid_motorway" name="Avoid motorways" description="Avoid motorways" type="boolean"></parameter>
    <parameter id="avoid_unpaved" name="Avoid unpaved roads" description="Avoid unpaved roads" type="boolean"></parameter>
    <way attribute="access">
      <if param="avoid_motorway">
        <select value="-1" t="highway" v="motorway"></select>
        <select value="-1" t="highway" v="motorway_link"></select>
        <select value="-1" t="highway" v="trunk"></select>
        <select value="-1" t="highway" v="trunk_link"></select>
      </if>
      <if param="avoid_ferries">
        <select value="-1" t="route" v="ferry"></select>
      </if>
      <if t="access" v="no">
        <select value="1" t="bicycle" v="yes"></select>
        <select value="1" t="bicycle" v="designated"></select>
        <select value="1" t="bicycle" v="official"></select>
        <select value="1" t="bicycle" v="permissive"></select>
        <select value="-1"></select>
      </if>
      <if t="access" v="private">
        <select value="1" t="bicycle" v="yes"></select>
        <select value="1" t="bicycle" v="designated"></select>
        <select value="1" t="bicycle" v="official"></select>
        <select value="1" t="bicycle" v="permissive"></select>
        <select value="-1"></select>
      </if>
      <select value="-1" t="bicycle" v="no"></select>
      <select value="1" t="bicycle" v="official"></select>
      <select value="1" t="bicycle" v="designated"></select>
      <select value="1" t="bicycle" v="yes"></select>
      <select value="1" t="bicycle" v="permissive"></select>
      <select value="1" t="highway" v="motorway"></select>
      <select value="1" t="highway" v="motorway_link"></select>
      <select value="1" t="highway" v="trunk"></select>
      <select value="1" t="highway" v="trunk_link"></select>
      <select value="1" t="highway" v="primary"></select>
      <select value="1" t="highway" v="primary_link"></select>
      <select value="1" t="highway" v="secondary"></select>
      <select value="1" t="highway" v="secondary_link"></select>
      <select value="1" t="highway" v="tertiary"></select>
      <select value="1" t="highway" v="tertiary_link"></select>
      <select value="1" t="highway" v="road"></select>
      <select value="1" t="highway" v="residential"></select>
      <select value="1" t="highway" v="unclassified"></select>
      <select value="1" t="highway" v="service"></select>
      <select value="1" t="highway" v="track"></select>
      <select value="1" t="highway" v="living_street"></select>
      <select value="1" t="highway" v="services"></select>
      <select value="1" t="highway" v="cycleway"></select>
      <select value="1" t="highway" v="path"></select>
      <select value="1" t="highway" v="pedestrian"></select>
      <select value="1" t="highway" v="footway"></select>
      <select value="1" t="highway" v="platform"></select>
      <select value="1" t="highway" v="byway"></select>
      <select value="1" t="highway" v="bridleway"></select>
      <select value="1" t="highway" v="steps"></select>
      <select value="1" t="route" v="ferry"></select>
      <select value="-1"></select>
    </way>
    <way attribute="oneway">
      <select value="0" t="cycleway" v="opposite_lane"></select>
      <select value="0" t="cycleway" v="opposite_track"></select>
      <select value="0" t="cycleway" v="opposite_share_busway"></select>
      <select value="0" t="cycleway" v="opposite"></select>
      <select value="0" t="oneway:bicycle" v="no"></select>
      <select value="1" t="oneway:bicycle" v="yes"></select>
      <select value="1" t="oneway" v="yes"></select>
      <select value="-1" t="oneway" v="reverse"></select>
      <select value="1" t="oneway" v="1"></select>
      <select value="1" t="oneway" v="+1"></select>
      <select value="-1" t="oneway" v="-1"></select>
      <select value="1" t="roundabout"></select>
      <select value="1" t="junction" v="roundabout"></select>
    </way>
    <way attribute="speed" type="speed">
      <select value="10" t="surface" v="cobblestone"></select>
      <select value="20" t="highway" v="cycleway"></select>
      <select value="20" t="highway" v="unclassified"></select>
      <select value="20" t="highway" v="service"></select>
      <select value="20" t="highway" v="track"></select>
      <select value="20" t="highway" v="path"></select>
      <select value="20" t="highway" v="living_street"></select>
      <select value="5" t="highway" v="pedestrian"></select>
      <select value="5" t="highway" v="footway"></select>
      <select value="10" t="highway" v="byway"></select>
      <select value="5" t="highway" v="platform"></select>
      <select value="20" t="highway" v="services"></select>
      <select value="10" t="highway" v="bridleway"></select>
      <select value="5" t="highway" v="steps"></select>
      <select value="5" t="route" v="ferry"></select>
      <select value="20"></select>
    </way>
    <way attribute="priority">
      <if param="avoid_unpaved">
        <select value="0.4" t="tracktype" v="grade2"></select>
        <select value="0.1" t="tracktype" v="grade3"></select>
        <select value="0.1" t="tracktype" v="grade4"></select>
        <select value="0.1" t="tracktype" v="grade5"></select>
        <select value="0.1" t="surface" v="unpaved"></select>
        <select value="0.4" t="surface" v="compacted"></select>
        <select value="0.1" t="surface" v="dirt"></select>
        <select value="0.1" t="surface" v="earth"></select>
        <select value="0.1" t="surface" v="gravel"></select>
        <select value="0.4" t="surface" v="fine_gravel"></select>
        <select value="0.1" t="surface" v="grass"></select>
        <select value="0.1" t="surface" v="ground"></select>
        <select value="0.1" t="surface" v="mud"></select>
        <select value="0.1" t="surface" v="pebblestone"></select>
        <select value="0.1" t="surface" v="sand"></select>
        <select value="0.1" t="surface" v="wood"></select>
      </if>
      <select value="1.9" t="traffic_sign" v="DE:237"></select>
      <select value="1.9" t="traffic_sign" v="DE:237; 1022-11"></select>
      <select value="1.9" t="traffic_sign" v="DE:237;1022-11"></select>
      <select value="1.9" t="traffic_sign" v="DE:240"></select>
      <select value="1.9" t="traffic_sign" v="DE:240; 1022-11"></select>
      <select value="1.9" t="traffic_sign" v="DE:240;1022-11"></select>
      <select value="1.9" t="traffic_sign" v="DE:241"></select>
      <select value="1.9" t="traffic_sign" v="DE:241; 1022-11"></select>
      <select value="1.9" t="traffic_sign" v="DE:241;1022-11"></select>
      <select value="1.9" t="bicycle" v="official"></select>
      <if t="bicycle" v="designated">
        <select value="0.5" t="traffic_sign" v="none"></select>
        <select value="1.9"></select>
      </if>
      <!-- <select value="1.9" t="bicycle" v="designated"></select> -->
      <select value="1.0" t="bicycle" v="yes"></select>
      <select value="0.7" t="surface" v="gravel"></select>
      <select value="0.7" t="surface" v="unpaved"></select>
      <select value="0.7" t="surface" v="grass"></select>
      <select value="0.2" t="surface" v="cobblestone"></select>
      <select value="0.7" t="tracktype" v="grade4"></select>
      <select value="0.7" t="tracktype" v="grade5"></select>
      <select value="0.1" t="barrier" v="debris"></select>
      <select value="0.2" t="highway" v="motorway"></select>
      <select value="0.2" t="highway" v="motorway_link"></select>
      <select value="0.2" t="highway" v="trunk"></select>
      <select value="0.2" t="highway" v="trunk_link"></select>
      <select value="0.2" t="highway" v="primary"></select>
      <select value="0.2" t="highway" v="primary_link"></select>
      <select value="1.0" t="highway" v="secondary"></select>
      <select value="1.0" t="highway" v="secondary_link"></select>
      <select value="1.0" t="highway" v="tertiary"></select>
      <select value="1.0" t="highway" v="tertiary_link"></select>
      <select value="1.0" t="highway" v="road"></select>
      <select value="1.0" t="highway" v="residential"></select>
      <select value="1.0" t="highway" v="unclassified"></select>
      <select value="1.0" t="highway" v="service"></select>
      <select value="1.0" t="highway" v="track"></select>
      <select value="1.0" t="highway" v="living_street"></select>
      <select value="0.5" t="highway" v="pedestrian"></select>
      <select value="0.5" t="highway" v="footway"></select>
      <select value="1.0" t="highway" v="byway"></select>
      <select value="0.5" t="highway" v="platform"></select>
      <select value="1.0" t="highway" v="services"></select>
      <select value="0.5" t="highway" v="bridleway"></select>
      <select value="0.5" t="highway" v="steps"></select>
      <select value="1.0" t="route" v="ferry"></select>
      <!--    <select value="1.0" t="highway" v="cycleway"></select>          
     <select value="1.0" t="highway" v="path"></select>    -->
    </way>
    <point attribute="obstacle_time">
      <!--     <select value="10" t="barrier" v="cycle_barrier"></select>
         <select value="5" t="barrier"></select>
         <select value="30" t="highway" v="traffic_signals"></select>    -->
      <select value="15" t="highway" v="stop"></select>
      <select value="7" t="highway" v="give_way"></select>
      <select value="25" t="highway" v="ford"></select>
      <select value="25" t="ford"></select>
      <select value="25" t="railway" v="crossing"></select>
      <select value="25" t="railway" v="level_crossing"></select>
    </point>
    <point attribute="obstacle">
      <!--     <select value="-1" t="bicycle" v="no"></select>
         <select value="10" t="barrier" v="cycle_barrier"></select>
         <select value="5" t="barrier"></select>
         select value="10" t="highway" v="traffic_signals"></select>     -->
      <select value="10" t="highway" v="stop"></select>
      <select value="7" t="highway" v="give_way"></select>
      <select value="25" t="highway" v="ford"></select>
      <select value="25" t="ford"></select>
    </point>
  </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"></attribute>
    <!-- NEW ROUTING API -->
    <parameter id="avoid_ferries" name="Avoid ferries" description="Avoid ferries" type="boolean"></parameter>
    <parameter id="avoid_motorway" name="Avoid motorways" description="Avoid motorways" type="boolean"></parameter>
    <way attribute="access">
      <if param="avoid_motorway">
        <select value="-1" t="highway" v="motorway"></select>
        <select value="-1" t="highway" v="motorway_link"></select>
        <select value="-1" t="highway" v="trunk"></select>
        <select value="-1" t="highway" v="trunk_link"></select>
      </if>
      <select value="-1" t="route" v="ferry">
        <if param="avoid_ferries"></if>
      </select>
      <select value="-1" t="foot" v="no"></select>
      <select value="-1" t="pedestrian" v="no"></select>
      <select value="1" t="highway" v="motorway"></select>
      <select value="1" t="highway" v="motorway_link"></select>
      <select value="1" t="highway" v="trunk"></select>
      <select value="1" t="highway" v="trunk_link"></select>
      <select value="1" t="highway" v="primary"></select>
      <select value="1" t="highway" v="primary_link"></select>
      <select value="1" t="highway" v="secondary"></select>
      <select value="1" t="highway" v="secondary_link"></select>
      <select value="1" t="highway" v="tertiary"></select>
      <select value="1" t="highway" v="tertiary_link"></select>
      <select value="1" t="highway" v="road"></select>
      <select value="1" t="highway" v="residential"></select>
      <select value="1" t="highway" v="cycleway"></select>
      <select value="1" t="highway" v="unclassified"></select>
      <select value="1" t="highway" v="service"></select>
      <select value="1" t="highway" v="track"></select>
      <select value="1" t="highway" v="path"></select>
      <select value="1" t="highway" v="living_street"></select>
      <select value="1" t="highway" v="pedestrian"></select>
      <select value="1" t="highway" v="footway"></select>
      <select value="1" t="highway" v="byway"></select>
      <select value="1" t="highway" v="platform"></select>
      <select value="1" t="railway" v="platform"></select>
      <select value="1" t="public_transport" v="platform"></select>
      <select value="1" t="highway" v="services"></select>
      <select value="1" t="highway" v="bridleway"></select>
      <select value="1" t="highway" v="steps"></select>
      <select value="1" t="route" v="ferry"></select>
      <select value="-1"></select>
    </way>
    <way attribute="oneway"></way>
    <way attribute="speed" type="speed">
      <select value="4" t="highway" v="steps"></select>
      <select value="5"></select>
    </way>
    <way attribute="priority">
      <!-- Additional tags -->
      <select value="0.05" t="access" v="private"></select>
      <select value="0.05" t="access" v="destination"></select>
      <select value="1.2" t="sidewalk" v="yes"></select>
      <select value="0.9" t="sidewalk" v="no"></select>
      <!-- object tags -->
      <select value="0.7" t="highway" v="motorway"></select>
      <select value="0.7" t="highway" v="motorway_link"></select>
      <select value="0.7" t="highway" v="trunk"></select>
      <select value="0.7" t="highway" v="trunk_link"></select>
      <select value="0.8" t="highway" v="bridleway"></select>
      <select value="0.9" t="highway" v="service"></select>
      <select value="0.9" t="highway" v="primary"></select>
      <select value="0.9" t="highway" v="primary_link"></select>
      <select value="1" t="route" v="ferry"></select>
      <select value="1.2" t="highway" v="steps"></select>
      <select value="1.2" t="highway" v="living_street"></select>
      <select value="1.2" t="highway" v="pedestrian"></select>
      <select value="1.2" t="highway" v="footway"></select>
      <select value="1"></select>
    </way>
    <point attribute="obstacle_time">
      <select value="5" t="highway" v="traffic_signals"></select>
      <select value="5" t="highway" v="ford"></select>
      <select value="5" t="ford"></select>
      <select value="5" t="railway" v="crossing"></select>
      <select value="5" t="railway" v="level_crossing"></select>
    </point>
    <point attribute="obstacle">
      <select value="-1" t="foot" v="no"></select>
      <select value="-1" t="pedestrian" v="no"></select>
    </point>
  </routingProfile>
</osmand_routing_config>