Hello,

did anybody figure out how to modify the routing.xml file in order to 
consider the width and maxwidth of a road? I would like to avoid with my 
motor home too narrow roads & bridges.

Modifications I did to routing.xml but the routing does not consider the 
limitations when set. Attached my modified routing.xml:

This part works properly:
<parameter id="width_max" name="WidthMax" description="Maximum vehicle 
width to be permitted on the route" type="numeric" 
values="0,1.49,1.99,2.29,2.49" valueDescriptions="-,1.5m,2m,2.3m,2.5m"/>
<parameter id="width_street" name="WidthStreet" description="Minimum width 
of street to pass." type="numeric" values="0,1.49,1.99,2.29,4.99,10" 
valueDescriptions="-,1.5m,2m,2.3m,5m,10m"/>

Changes to the routing engine:
<way attribute="access">
...
  <!--Test values
    Start: 48.78935,8.83382
    End:   48.78947,8.83652
    Limitation: 2.4 m bridge
  --> 
  <select value="-1" t="maxwidth">
    <gt value1=":width_max" value2="$maxwidth" type="length"/>
   </select>
            
   <!--Test values
     Start: 49.61909,11.06893
     End:   49.61197,11.12128
     Limitation: 4 m width of street close to 49.61909,11.06893
   --> 
   <select value="-1" t="width">
      <gt value1=":width_street" value2="$width" type="length"/>
   </select>

<point attribute="obstacle">
...
  <select value="-1" t="maxwidth">
    <gt value1=":width_max" value2="$maxwidth" type="length"/>
   </select>
            
   <select value="-1" t="width">
     <gt value1=":width_street" value2="$width" type="length"/>
   </select>

-- 
You received this message because you are subscribed to the Google Groups 
"Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osmand/576a9de7-3074-4114-9d93-1919f4a821c5%40googlegroups.com.

Attachment: routing.xml
Description: XML document

Reply via email to