Navigation profiles not working?

79 views
Skip to first unread message

David

unread,
Oct 18, 2019, 11:53:18 AM10/18/19
to Osmand
I programmed a extra profile for navigation.
For my motorhome I set minimum speed on 10 km/hr. Normal speed on 33 km/hr. Max speed on 100 km/hr. All way lower then the normal car settings.
On a 2250 km roadtrip Osmand calculates a minnimal difference !!With the slower motorhome having the lowest amount of driving hours!!
Ideas annyone?

Harry van der Wolf

unread,
Oct 18, 2019, 12:53:53 PM10/18/19
to osmand
I have an 2 extra car (one with a heuristic coeficient of 1.5* and a "slow" one) and an extra caravan profile and they work fine. Both in calculating alternative routes and in the time to travel that route (when using a route that is equal for all).

Can you share your profile here?
You can find it in Android/data/net.osmand(.plus)/files/routing

*:OsmAnd still has issues calculating long routes. When using an HC=1.5, I can simply calculate routes over 1500 km, where 1450~1475 km is over motorways anyway, so the normal calculation (slooooow) and my calculation still deliver the same route.

Harry

Op vr 18 okt. 2019 om 17:53 schreef David <dada...@gmail.com>:
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/osmand/03f1b351-b4f9-4a14-b0c9-420c5f41c79d%40googlegroups.com.

David

unread,
Oct 19, 2019, 4:17:43 AM10/19/19
to Osmand
Thanks Harry
I might have mis-worded my problem, all I did was change the speed settings in the navigation settings.
(I would not even know how to change the heuristic coefficient)

Minimum speed from 20 to 10 km/h
Standard speed from 45 to 33 km/h
Maximum speed from 130 to 100 km/h

I hoped to get more realitic driving time estimates for my little motorhome.
Davy

Harry van der Wolf

unread,
Oct 19, 2019, 9:32:25 AM10/19/19
to osmand
That is also what I mentioned with my "slow one". I just limited the speed to 90 km/h.

That one is working as it calculates another (shorter) route if a motorway isn't faster, due to the reduced speed.
When I simply calculate a long route over motorways from city to city, the "slow one" uses the same route, but takes definitely longer.

Harry

Op za 19 okt. 2019 om 10:17 schreef David <dada...@gmail.com>:
--
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.

David

unread,
Oct 20, 2019, 5:21:40 PM10/20/19
to Osmand
Thanks again,
I will try few different routes, maybe there is a particularity with my trip that makes the 'slow' profile just a little faster than the 'speedy' one.


By the way, I read a lot of your answers in this forum. And I'm sure everybody apreciates your valuable help.

Dankjewel,
Davy

Helmut Jarausch

unread,
Oct 24, 2019, 2:40:25 PM10/24/19
to osm...@googlegroups.com
How can one configure different routing parameters for different profiles?
Many thanks for a hint, 
Helmut 

Harry van der Wolf

unread,
Oct 25, 2019, 1:52:49 PM10/25/19
to osmand
You have two options:
1. Create a simple one direct from the Settings
2. Modify the existing routing profile for car/bike/pedestrian and use that as "custom" profile, again via the Settings.

====
1. Create a profile directly from the settings:
Settings -> Application profiles.
You see a number of profiles and the button Add.
You select one of the existing "base profiles, give it a new name, and start modifying.

This is just "play & learn". You could create a profile for a camper or old-timer by simply only reducing the max speed. Or a "touristic profile" by disabling motorways and toll roads.


====
2. Modify the existing routing profile (Extract a sub profile)
If you have an up-to-date OsmAnd, you can simply download the routing.xml from github from the osmand-resources repository:  routing.xml

Explaining all the settings in this routing.xml is something I will not do. That takes a complete tutorial and a lot of the options are explained in a summarized way. I created a few on the Car profile by simply extracting that one from the complete routing.xml (with the header data above it).

OsmAnd uses the A* "shortest path" algorithm to calculate routes (Google for it). In OsmAnd the heuristic coefficient (Google for it) is 1.0. This means that ALL possible roads are examined. This means that it is slooow and uses an awful lot of memory.
I have attached 3 profiles: mycar15.xml, mycar13.xml and caravan.xml.
Please have a look at them if you want to learn from it. They are certainly not meant as perfect examples: absolutely not. They work fine for me and should give you an insight in what can be done.

The mycar15.xml and mycar13.xml is 100% the CAR profile but with an heuristic_coefficient of 1.5 and 1.3 respectively. On long routes this creates the same routes, but now for 1000+ kms in a fraction of the time. On shorter routes with a lot of possible roads, like in cities, it means that the calculated route might be slightly less optimal. A lot of navigation apps us a heuristic factor between 1.3 and 1.6

The carvan.xml is a CAR routing with  heuristic Coefficient of 1.3, a reduced max speed of 90,  a higher priority for motorways and a reduced priority for small roads.

These profiles can be copied into Android/data/net.osmand(.plus)/files/routing.
Now when you want to create a profile based on these files, you go again in Settings->Application profiles.
Select CAR profile. On the next page you give it a name.
Select from "Navigation type", your created profile(s).
And continue.

in German: https://de.wikipedia.org/wiki/A*-Algorithmus  (Assuming you are German/Austrian/Swiss)


Harry


Op do 24 okt. 2019 om 20:40 schreef Helmut Jarausch <hjar...@gmail.com>:
mycar15.xml
mycar13.xml
caravan.xml

Helmut Jarausch

unread,
Oct 27, 2019, 8:55:37 AM10/27/19
to osm...@googlegroups.com
Harry, thank you very much for your detailed description. It took some time to understand the mechanism. And, as always, the option to select this new routing profile was a bit hidden.
One last question: is it even possible to assign a new icon to my new profile. 
Currently, both the standard car profile and my Car15 profile use the "car icon" and can't be distinguished at first glance.
Thanks again, 
Helmut 

Helmut Jarausch

unread,
Oct 27, 2019, 9:44:49 AM10/27/19
to osm...@googlegroups.com
I've just discovered that I can change the colour of the icon which is sufficient to me. 

Harry van der Wolf

unread,
Oct 27, 2019, 11:06:57 AM10/27/19
to osmand
You can also change the icon itself, but thare are not so much options.

Harry

Op zo 27 okt. 2019 om 14:44 schreef Helmut Jarausch <hjar...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages