Speed as the basis for ETA in various travel modes

260 views
Skip to first unread message

P Wat

unread,
May 6, 2018, 7:10:59 PM5/6/18
to Osmand
What speed does OsmAnd use as the basis for ETA in Walking mode?
What speed does OsmAnd use as the basis for ETA in Bike mode?
What speed does OsmAnd use as the basis for ETA in Car mode?
In each case - Can the user adjust the assumed speed?
Thanks
Paul W

Harry van der Wolf

unread,
May 7, 2018, 3:25:04 AM5/7/18
to osmand
Hi,


There are also entries for geocoding and boat.

If you want to modify these values, do so and copy the routing.ml file in the "/data/android/net.osmand(.plus)/files" directory, and reboot.

Harry


--
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 osmand+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

P Wat

unread,
May 7, 2018, 5:35:07 PM5/7/18
to Osmand

Hi Harry - Thank you for the feedback.
It looks as if there is a solution there, if I can handle the code - (a bit of a foreign country for me!)

Suppose I succeed in creating a file for each of a range of speeds, each with its own name, eg; routing3kt.xml, routing5kt.xml, etc; then copy them all to the "/data/android/net.osmand(.plus)/files" directory, and re-boot; is it viable to then set the desired speed by selecting the relevant file without a re-boot between each adjustment?
Reason - When sailing, the speed toward the destination is not reliably predictable in advance (because of unknown factors, eg wind speed, currents, effects of waves, having to tack, etc.).  Having to re-boot during navigation would be a pain.

Paul W

Poutnik the Wanderer

unread,
May 8, 2018, 1:04:42 AM5/8/18
to osm...@googlegroups.com
Note that OSMand works only with the file with exact name routing.xml. You
may want to copy and overwrite routing.xml by prepared routingxxx.xml.

But the app restart is needed.

There is no good way to make ETA estimation for sailing, as neither future
speed, neither to be passed distance are known in advance.

The only reasonable ETA estimation is IMHO to calculate AVG speed related
to passed coordinate based straight distance ( total for short cruises or
1-few days for long voyages
and to apply it on the remaining distance.

If you passed 200 nm in 4 days, you estimate ETA 2 days for remaining 100 nm.

But it has it own flaws as well, as it fails with significant change of
sailing conditions or the course taken.

Partly helps, if the passed distance counter is reset with such a change,
if the conditions last long enough.

----------
Dne 7. května 2018 23:35:11 "'P Wat' via Osmand" <osm...@googlegroups.com>
napsal:
> --
> 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 osmand+un...@googlegroups.com.

P Wat

unread,
May 8, 2018, 5:57:12 PM5/8/18
to Osmand
Hi Poutnik.
Thanks for your input.

A) The complexities of predicting boat speeds, and the causes of the range of them, are known to me, but thanks anyway.

B) Considering the technicalities of OsmAnd :-
1) In effect, you say there can be only one "routing.xml" file. - OK.
2) The "routing.xml" file has several profiles in it.  Could further profiles be added?  (If I could learn how to do it.)
3) If so, could the additional profiles be named, say, B3, B5, B7, etc (for boat speeds 3, 5, 7 kts respectively)
4) If yes, how would one go about displaying suitable icons/labels for each boat profile?
Thanks
Paul W

Poutnik the Wanderer

unread,
May 9, 2018, 12:49:25 AM5/9/18
to osm...@googlegroups.com
Hi Paul,
The question may be, if it is worthy to expect ETA from OSMand. Perhaps
just for a straight segment with about stable wind.

B2/ It is a text file. You can copy/paste within the file or from outside.
B3/ I Guess it can be, or you can just modify existing profiles like
car=7kt, bike=5kt, walk=3kt.
B4/ No idea.

----------
Dne 8. května 2018 23:57:15 "'P Wat' via Osmand" <osm...@googlegroups.com>
napsal:

Max

unread,
May 9, 2018, 7:36:08 AM5/9/18
to Osmand
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

P Wat

unread,
May 9, 2018, 11:10:14 AM5/9/18
to Osmand
Hi Poutnik
As ever, you come up with good ideas, and sound methods.
However, doing it that way it looks as if I'd have to sacrifice the normal car, bike, and walk profiles as a means of having them available for three boat speeds.   Hmmm.  Not sure I'd be willing to lose them.
If I didn't understand you correctly, let me know.

Maybe Max's idea is the way forward.
And if it works, you may be able to explain how I could also use the thin-dotted-route-line instead of the thick purple one.
Thanks
Paul W

P Wat

unread,
May 9, 2018, 11:19:29 AM5/9/18
to Osmand
Hi Max
Boat profile is already enabled and enjoyed!  :)

In the example code you've kindly provided (thanks for saving me hours of learning, trial and error, sweat and tears), I assume it is OK to substitute my own preferred speed numbers and units (eg 3,5,7, and Knots (nautical miles/hour).
If I succeed with that, and the file runs OK for me after loading the file in lieu of the normal xml, and then re-booting, I'll have a chance to test it on the water tonight.
Amazing!
Fingers crossed.
Thanks.
Paul W

Poutnik the Wanderer

unread,
May 9, 2018, 11:21:59 AM5/9/18
to osm...@googlegroups.com

Yes, what Max suggests seems like way to go..
----------
Dne 9. května 2018 17:10:17 "'P Wat' via Osmand" <osm...@googlegroups.com>
napsal:

P Wat

unread,
May 9, 2018, 11:43:13 AM5/9/18
to Osmand
Showing my ingorance/incompetence.
Why can't I find the routing.xml in my devices?  (phone and the tablet.)
I can see Android/data/net/osmand/plus/files.
In there are folders (backup, fonts, rendering, roads, sounds, strm, tiles, tracks, & voice).  Also files from Depth_contours to regions, then World_altitude..... to World_seamarks.
Routing.xml not seen.
Ideas?
PW

Poutnik the Wanderer

unread,
May 9, 2018, 12:11:04 PM5/9/18
to osm...@googlegroups.com
AFAIK, the routing.xml file is not explicitly listed among external OSMand
files, but is hardcoded into the application.

Application uses the hardcoded data, unless explicit file is provided by
the user.

It is also present in the application installation file APK, what is
technically a ZIP file with Android specific folder structure.

You need to download the Application APK file of the version you are using
from download.osmand.net/releases/, and extract it from there.

You can also download the latest one from GitHub project, but there may be
version compatibility problem, so I do not recommend it.

----------
Dne 9. května 2018 17:43:16 "'P Wat' via Osmand" <osm...@googlegroups.com>
napsal:

> Showing my ingorance/incompetence.
> Why can't I find the routing.xml in my devices? (phone and the tablet.)
> I can see Android/data/net/osmand/plus/files.
> In there are folders (backup, fonts, rendering, roads, sounds, strm, tiles,
> tracks, & voice). Also files from Depth_contours to regions, then
> World_altitude..... to World_seamarks.
> Routing.xml not seen.
> Ideas?
> PW
>
> On Wednesday, May 9, 2018 at 4:21:59 PM UTC+1, Poutnik wrote:
>>
>>
>> Yes, what Max suggests seems like way to go..
>> ----------
>> Dne 9. května 2018 17:10:17 "'P Wat' via Osmand" <osm...@googlegroups.com
>> <javascript:>>
>> napsal:
>>
>> > Hi Poutnik
>> > As ever, you come up with good ideas, and sound methods.
>> > However, doing it that way it looks as if I'd have to sacrifice the
>> normal
>> > car, bike, and walk profiles as a means of having them available for
>> three
>> > boat speeds. Hmmm. Not sure I'd be willing to lose them.
>> > If I didn't understand you correctly, let me know.
>> >
>> > Maybe Max's idea is the way forward.
>> > And if it works, you may be able to explain how I could also use the
>> > thin-dotted-route-line instead of the thick purple one.
>> > Thanks
>> > Paul W
>> >
>> > --
>> > 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 osmand+un...@googlegroups.com <javascript:>.

Max

unread,
May 9, 2018, 12:18:14 PM5/9/18
to Osmand
Hi!

You can also download the latest one from GitHub project, but there may be
version compatibility problem, so I do not recommend it.

routing.xml from OsmAnd 2.9 can be downloaded here, so that there is no compatibility problem:

This is the current routing.xml from current development branch:

Regards,
Max

P Wat

unread,
May 9, 2018, 12:20:28 PM5/9/18
to Osmand
Right.
Hmm.
On 7th May Harry VDW said "
If you want to modify these values, do so and copy the routing.ml file in the "/data/android/net.osmand(.plus)/files" directory, and reboot."
Do you suppose I can just place the modified xml file in  "/data/android/net.osmand.plus/files" directory, and reboot." ?
PW

P Wat

unread,
May 9, 2018, 12:25:58 PM5/9/18
to Osmand
Max
The files you suggested a couple of minutes ago -
Are they the same as Harry VDW showed me on 7th May?  ie:-
https://github.com/osmandapp/OsmAnd-resources/blob/master/routing/routing.xml
PW

Max

unread,
May 9, 2018, 12:26:13 PM5/9/18
to Osmand


Do you suppose I can just place the modified xml file in  "/data/android/net.osmand.plus/files" directory, and reboot." ?

Yes, if this is the path to your osmand directory.
Reboot is not necessary, you just have to stop (swipe it away ore use app manager) and restart OsmAnd, but reboot also works.

Poutnik the Wanderer

unread,
May 9, 2018, 12:26:46 PM5/9/18
to osm...@googlegroups.com
Yes, I forgot there is probably the Gut release tag.

----------
Dne 9. května 2018 18:18:17 Max <openstre...@nurfuerspam.de> napsal:

Poutnik the Wanderer

unread,
May 9, 2018, 12:29:37 PM5/9/18
to osm...@googlegroups.com
At least I do so and it works. I used it to tweak heuristic routing
coefficient.

Respectively in the folder the user dedicated for OSMAnd data, if applies.

----------
Dne 9. května 2018 18:20:31 "'P Wat' via Osmand" <osm...@googlegroups.com>
napsal:

P Wat

unread,
May 9, 2018, 12:31:07 PM5/9/18
to Osmand
Thank you both (and not forgetting Harry) for your swift and helpful input.
Based on your knowledge, I've prepared several versions of routing.xml to test, and will let you know what happens.
Thanks guys.
Paul W

Max

unread,
May 9, 2018, 12:39:11 PM5/9/18
to Osmand
It is the current development file, but currently the difference to the OsmAnd 2.9 file is very small (only weighting of mtb and bicycle and some motorway links changed a little bit).

P Wat

unread,
May 9, 2018, 1:50:23 PM5/9/18
to Osmand
Have hit a problem.
Have put the modified file in the "Files" folder, shut down OsmAnd and re-booted.
Osmand runs ok but I'm unable to find the list called "Boat speed".
Please advise.
Paul W

P Wat

unread,
May 10, 2018, 4:19:45 PM5/10/18
to Osmand
This seems such a good idea, but ....
I'm still unable to make this work at all because ....
Despite putting the new XML file in the "/data/android/net.osmand.plus/files" folder, the app still operates as if nothing has been changed.
Any Ideas?
Paul W

Harry van der Wolf

unread,
May 11, 2018, 5:31:33 AM5/11/18
to osmand
Note that OsmAnd makes this folder both on internal memory as well as on SD-card, if you have an sdcard. One of those folder structures will almost be empty, the other filled among others with maps.
Check which folder contains your maps. Copy your Routing.xml also into that folder.

--
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 osmand+unsubscribe@googlegroups.com.

P Wat

unread,
May 11, 2018, 6:41:40 AM5/11/18
to Osmand
Hello Harry
Thanks for your useful info.
a) In Internal memory Android/Data/net.osmand.plus/files I see several files and 9 folders including "Tiles", though not much in there.
b) In SD card   Android/Data/net.osmand.plus/files I see only one folder "rendering" with only one file "GPRX08.render".

Please advise - Should I go for (a) or (b), and precisely which folder?
Thanks
Paul W

Max

unread,
May 12, 2018, 3:31:28 AM5/12/18
to Osmand
Hi Paul,

the correct folder should be shown under Settings -> General Settings -> Data storage folder.

Regards,
Max

P Wat

unread,
May 12, 2018, 1:49:02 PM5/12/18
to Osmand
Hi Max
Thanks for your ongoing help.
I understand what you say.
Following your instructions, I've gone to "Settings -> General Settings -> Data storage folder.".  It says "/storage/emulated/0/Android/data/net.osmand.plus/files".
Using USB lead and PC, I find:-
a) "Internal shared storage/Android/data/net.osmand.plus/files".  This is where I put the amended "routing.xml".  Also in there are a load of OBF files with the names of countries whose maps I've downloaded. .
b) "SanDisk SD card/Android/data/net.osmand.plus/files".  In here I can see only one folder "files" containing one file "GPX08.render".

I cannot see anything called ""/storage/emulated/0/", but I assume that is the one identified (a) above.
I can still not see the list called "Boat Speed".
Stumped!
Paul W

P Wat

unread,
May 13, 2018, 5:56:03 AM5/13/18
to Osmand
Wait - Say nothing - I think I've nearly cracked it!  -  BAck in due course -  PW

P Wat

unread,
May 13, 2018, 5:27:01 PM5/13/18
to Osmand
Progress, and a few snags:-
Previous problems were caused by having not properly changed the filename.  The amended "routing" looked like "routing.xml" but more thorough investigation showed it was "routing.xml.txt".
That is now resolved, placed in the correct location, and after re-booting is adopted by Osmand as the new "routing".
The options for the range of speeds are visible and they operate (presumably accurately). - (I'll check this later).

ALL HELPERS (Harry, Max, Poutnik)  - THANK YOU VERY MUCH.
However:-
  1. On the TABLET (running OsmAnd+ 2.9.3 from SD card on Android 4.4.4) one has to go into "Routing settings", "Navigation settings", [boat], to find the speed options under "Routing Preferences.  There, the range of speeds offers TICK BOXES and allows ticking of more than one at a time.     Whereas, on the PHONE (running OsmAnd+ 2.9.3 from "Internal shared storage" on Android 7.0), to find the range of speeds, one only has to go to "Routing settings", and there one immediately sees "Boat Speed" [whatever was selected].  Tapping that reveals the range of speeds offered as BUTTONS for the speed, and only one at a time is selectable.
  2. Using the NAUTICAL MAPS mode, the route line shows as a thick purple line.  This obscures important details, eg weirs, locks, sluices, etc.  Whereas in any other MAP mode, ie Walk, Bike, Car, World, the route line shows on my devices as a thin dotted red line (generated, I think, by GPXR08.render.xml - Kindly provided by another OsmAnd contributor a year or two ago).
Re (1)
It would be preferable if the access to the range of speeds on the TABLET was "nearer the surface"
It would be preferable if the tick boxes did not allow ticking of more than one at a time.

Re (2)
It would be infinitely desirable for the routing line to show as a thin red dotted line (as it does in my other map modes) because of the significant disadvantage of not being able to see critical hazards through the thick purple line.
A solution to this would be a major advantage - ANY SUGGESTIONS?


FWIW, I had adjusted Max's "Boat Routing" code to show
" <parameter id="boat_speed_3" group="boat_speed" name="Speed 3" "  instead of "<parameter id="boat_speed_1" group="boat_speed" name="3 km/h" ", and similarly for the other values,
and changed the values to 3,4,5 &6 instead of 1,5,8,15.
And under "<way attribute="speed" type="speed">" I substituted values 3,,4,5,6 in lies of each respective value 1,5,8,15.
Reasons; I want to be able to work in Knots (not km/h) and prefer the new speed values.
I (coding novice) presume that the above will have no detrimental effect.
I don't understand why the following three lines exist, but I left them alone

" </if>
            <select value="10"  t="waterway" v="river"/>
            <select value="10"  t="waterway" v="canal"/>"

If particularly (2) above can be resolved, and ideally also (1), I'll summarise the method for future users.
Looking forward to your further suggestions
Thanks
Paul W

P Wat

unread,
May 13, 2018, 7:04:32 PM5/13/18
to Osmand
Addendum to the above of 22:27 on 13/05/2018.
.
In the various settings, if Nautical miles and Knots are selected, the Time for a particular Distance and Speed is not accurate.
If I reset settings to Km and Km/Hr, the Time for a particular Distance and speed seems to be correct.

What should be done to give the correct duration when set to Knots and Nautical miles?
Thanks
Paul W

Max

unread,
May 15, 2018, 3:34:49 AM5/15/18
to Osmand

  1. On the TABLET (running OsmAnd+ 2.9.3 from SD card on Android 4.4.4) one has to go into "Routing settings", "Navigation settings", [boat], to find the speed options under "Routing Preferences.  There, the range of speeds offers TICK BOXES and allows ticking of more than one at a time.     Whereas, on the PHONE (running OsmAnd+ 2.9.3 from "Internal shared storage" on Android 7.0), to find the range of speeds, one only has to go to "Routing settings", and there one immediately sees "Boat Speed" [whatever was selected].  Tapping that reveals the range of speeds offered as BUTTONS for the speed, and only one at a time is selectable.

The difference between tablet and phone is strange.
 
  1. Using the NAUTICAL MAPS mode, the route line shows as a thick purple line.  This obscures important details, eg weirs, locks, sluices, etc.  Whereas in any other MAP mode, ie Walk, Bike, Car, World, the route line shows on my devices as a thin dotted red line (generated, I think, by GPXR08.render.xml - Kindly provided by another OsmAnd contributor a year or two ago).

 
FWIW, I had adjusted Max's "Boat Routing" code to show
" <parameter id="boat_speed_3" group="boat_speed" name="Speed 3" "  instead of "<parameter id="boat_speed_1" group="boat_speed" name="3 km/h" ", and similarly for the other values,
and changed the values to 3,4,5 &6 instead of 1,5,8,15.
And under "<way attribute="speed" type="speed">" I substituted values 3,,4,5,6 in lies of each respective value 1,5,8,15.
Reasons; I want to be able to work in Knots (not km/h) and prefer the new speed values.
I (coding novice) presume that the above will have no detrimental effect.
I don't understand why the following three lines exist, but I left them alone
" </if>
            <select value="10"  t="waterway" v="river"/>
            <select value="10"  t="waterway" v="canal"/>"

Routing engine always operates with km/h, knots are only for user display.

In the various settings, if Nautical miles and Knots are selected, the Time for a particular Distance and Speed is not accurate.
If I reset settings to Km and Km/Hr, the Time for a particular Distance and speed seems to be correct.

routing.xml does only contain km/h, because routing engine doesn't know anything about knots.
If you want 1kn you should write 1.852 into the routing.xml
If you want 3kn you should write 5.556 into the routing.xml

Time should not change if you select knots in settings.

I'm able to switch speed in display to kn.
I'm not able to switch distance units (it always displays m or km on the map screen), setting seems not to have any effect?
Are yo able to switch it?

Max

unread,
May 15, 2018, 3:58:14 AM5/15/18
to Osmand

I'm not able to switch distance units (it always displays m or km on the map screen), setting seems not to have any effect?
Are yo able to switch it?

Sorry, my mistake.
I was confused, because beyond 1 smi the distance is shown in m.

The time seems to be correct.
It does not change, if I switch from km/h to kn and recalculate the route.
Also the speed seems to be correct.

P Wat

unread,
May 15, 2018, 3:27:05 PM5/15/18
to Osmand
Hi Max
Wow, with a bit of luck I'll get this under control in time before I leave on Friday for a series of major events next week.;

The Render file you've "sent" me.
Is it likely to be the same as the "nautical.render.xml" already in my device in "...../net.osmand.plus/fol;es/rendering"  ?
If not, should I:- Copy and past it into a text file, call it nautical.render, and ensure it is suffixed "xml", then copy it to the folder where the current "nautical.render.xml" is, having first copied the original "nautical.render.xml" to somewhere else in case I want to revert to it?
Or could I just alter the relevant section of the existing "nautical.render.xml"?
Either way, is it the section to be adjusted, the bit under "<renderingAttribute name="route">."?   If so, what do I do to achieve my preferred red-dotted-line format?

Adjustment to get knots instead of Km/hr - I deduce this is done in the routing file.  Correct?

(Re - difference between Tablet and Phone - Maybe I was mistaken.)

Regards
Paul W

P Wat

unread,
May 16, 2018, 7:06:00 AM5/16/18
to Osmand
Some progress, but a snag.
The good news - In "Boat" mode, navigation offers a range of selectable speeds in Knots.  Calculated results seem to be mathematically correct, and length of route line is accurate on the map.
The bad news - The voice announcement which should come at the start of the trip (distance & time) is not announced.  Similarly, no announcements for turns.  This failure exists is all navigation modes!

Assuming this is caused by error/s in my amendments to the codes, can you see what is wrong in the data below?
AFAIK I have made no other changes.
Thanks
Paul W
======================
The following is what I now have in the relevent bit of "nautical.render.xml" to produce a satisfactory red-dotted route-line.  (Not quite what I hoped for but better than solid purple)
<renderingAttribute name="route">       
<case color="#ccaa0088" strokeWidth="4" color_3="#ffffff" strokeWidth_3="0:0"  pathEffect="4_8">
<apply_if nightMode="true" color="#FFFC1D" strokeWidth="7:6"/>
</case>
</renderingAttribute>
======================
The following is what I now have in the relevent bit of "routing.xml" to offer a range of assumed speeds in Knots
 <routingProfile name="boat" restrictionsAware="true" minDefaultSpeed="5.0" maxDefaultSpeed="20.0" onewayAware="true">
    <parameter id="boat_speed_3" group="boat_speed" name="3 Nm/Hr" description="" type="boolean"/>
    <parameter id="boat_speed_4" group="boat_speed" name="4 Nm/Hr" description="" type="boolean" default="true"/>
    <parameter id="boat_speed_5" group="boat_speed" name="5 Nm/Hr" description="" type="boolean"/>
    <parameter id="boat_speed_6" group="boat_speed" name="6 Nm/Hr" 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_3">
                <select value="5.556"  t="waterway" v="river"/>
                <select value="5.556"  t="waterway" v="canal"/>
            </if>
            <if param="boat_speed_4">
                <select value="7.408"  t="waterway" v="river"/>
                <select value="7.408"  t="waterway" v="canal"/>
            </if>
            <if param="boat_speed_5">
                <select value="9.26"  t="waterway" v="river"/>
                <select value="9.26"  t="waterway" v="canal"/>
            </if>
            <if param="boat_speed_6">
                <select value="11.112"  t="waterway" v="river"/>
                <select value="11.112"  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>

P Wat

unread,
May 16, 2018, 6:17:32 PM5/16/18
to Osmand
ADVICE PLEASE

Very pleased to have found that it is possible to offer a range of assumed speeds in Nautical Miles per hour, and to present a more useful route line (ie does not obscure important map details).
But disappointed to have lost all voice prompts (turn commands) in all travel modes.

I've been analysing this "lost voice" problem.
Resorted to uninstalling and re-installing OsmAnd+  (is now on Device not SD card)
Restored Boat profile, Nautical maps, UK English TTS, Favourites,  etc.
Voice commands have returned.
Re-installed amended version of  "routing" (with NauticalMiles/Hr factors in "<way attribute="speed" type="speed">" section, eg <if param="boat_speed_3">  <select value="5.556"  t="waterway" v="river"/>", etc for other speeds).
Voice commands still OK. (in Kilometres)
Set Units to Nautical.  Voice commands lost.  Returned Units to Kilometres.  Voice returned.

QUESTION - How to offer nautical speeds in Nautical miles per hour, without losing the voice prompts.
Ideas please.
Thanks
Paul W
Reply all
Reply to author
Forward
0 new messages