Hi Paul,

only one routing.xml is possible.
I don't know your requirements.

You can enable the boat profile:
Plugins -> Enable OsmAnd development
then
Settings-> OsmAnd development -> Application profiles -> select 
additionally the boat icon -> OK

Modify the boat profile in routing.xml (just an example, modify as needed):

    <routingProfile name="boat" restrictionsAware="true" 
> minDefaultSpeed="5.0" maxDefaultSpeed="20.0" onewayAware="true">
>     
> *    <parameter id="boat_speed_1" group="boat_speed" name="1 km/h" 
> description="" type="boolean"/>*
> *    <parameter id="boat_speed_5" group="boat_speed" name="5 km/h" 
> description="" type="boolean" default="true"/>*
> *    <parameter id="boat_speed_8" group="boat_speed" name="8 km/h" 
> description="" type="boolean"/>*
> *    <parameter id="boat_speed_15" group="boat_speed" name="15 km/h" 
> description="" type="boolean"/>*
>         
>         <way attribute="access">
>             <select value="-1" t="osmand_change" v="delete"/>
>             <select value="-1" t="access" v="no"/>
>             <select value="1"  t="access" v="yes"/>
>             <select value="-1" t="access" v="private"/>
>             <select value="-1" t="waterway" v="dam"/>
>             <select value="-1" t="waterway" v="weir"/>
>             <select value="-1" t="waterway" v="waterfall"/>
>             <select value="1"  t="access" v="permissive"/>
>             <select value="1"  t="access" v="destination"/>
>             <select value="1"  t="waterway" v="river"/>
>             <select value="1"  t="waterway" v="canal"/>
>
>             <select value="-1"/>
>         </way>
>
>         <way attribute="oneway">
>             <select value="1" t="oneway" v="yes"/>
>             <select value="1" t="oneway" v="1"/>
>             <select value="-1" t="oneway" v="-1"/>
>         </way>
>
>         <way attribute="speed" type="speed">
> *            <if param="boat_speed_1">*
> *                <select value="1"  t="waterway" v="river"/>*
> *                <select value="1"  t="waterway" v="canal"/>*
> *            </if>*
> *            <if param="boat_speed_5">*
> *                <select value="5"  t="waterway" v="river"/>*
> *                <select value="5"  t="waterway" v="canal"/>*
> *            </if>*
> *            <if param="boat_speed_8">*
> *                <select value="8"  t="waterway" v="river"/>*
> *                <select value="8"  t="waterway" v="canal"/>*
> *            </if>*
> *            <if param="boat_speed_15">*
> *                <select value="15"  t="waterway" v="river"/>*
> *                <select value="15"  t="waterway" v="canal"/>*
> *            </if>*
>             <select value="10"  t="waterway" v="river"/>
>             <select value="10"  t="waterway" v="canal"/>
>         </way>
>
>         <way attribute="priority">
>             <select value="1"  t="waterway" v="river"/>
>             <select value="1"  t="waterway" v="canal"/>
>             <select value="0.7"/>
>         </way>
>
>         <point attribute="obstacle">
>             <select value="-1" t="boat" v="no"/>
>             <select value="-1" t="access" v="no"/>
>             <select value="-1"  t="access" v="private"/>
>             <select value="0"  t="access" v="yes"/>
>             <select value="0"  t="access" v="permissive"/>
>             <select value="0"  t="access" v="customers"/>
>         </point>
>     </routingProfile>
>

Now you can select the routing boat profile (select the boat icon) and 
change the boat speed "on-the-fly" in routing settings, there is a list 
called "Boat speed" (because of *group="boat_speed"*), with the 4 choices 
according to the routing.xml.

Regards,
Max

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to