How to change the heuristicCoeffient?

108 views
Skip to first unread message

hjar...@gmail.com

unread,
Mar 13, 2021, 11:43:47 AM3/13/21
to OsmAnd
As in previous versions of OSMAnd, I have downloaded the current routing.xml file.
I've changed the name from car to the car15 and I have set the heuristicCoeffient to 1.5.
I have copied this file to Android/data/net.osmand.plus/files/routing. 
After restarting OSMAnd I don't see the new car15 profile. 
What am I missing? 
Many thanks for a hint, 
Helmut 
P.S. I am using a recent developer version 4.0....

Harry van der Wolf

unread,
Mar 13, 2021, 12:41:24 PM3/13/21
to osmand
You should not only rename the routing.xml to car15.xml but also the header of the profile like
<routingProfile name="car15" baseProfile="car" restrictionsAware="true" minSpeed="20.0" defaultSpeed="45.0" maxSpeed="130.0" leftTurn="5" rightTurn="5" roundaboutTurn="5" onewayAware="true" heuristicCoefficient="1.5">

Did you do that?
And you can remove all explanatory text above and all other profiles below the modified profile. That makes the file ~3kb instead of ~87 kb

Op za 13 mrt. 2021 om 17:43 schreef hjar...@gmail.com <hjar...@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/50dd8814-1546-431d-a87f-e18be963789bn%40googlegroups.com.

Helmut Jarausch

unread,
Mar 13, 2021, 1:15:34 PM3/13/21
to osm...@googlegroups.com
Yes, I have

<routingProfile name="car15" baseProfile="car" restrictionsAware="true" minSpeed="20.0" defaultSpeed="45.0" maxSpeed="130.0" sharpTurn="30" slightTurn="10" roundaboutTurn="5" onewayAware="true">

<attribute name="heuristicCoefficient" value="1.5"

Furthermore, the file "mycar15" in Android/data/net.osmand.plus/routing gets deleted after the next restart of OSMAnd. This happened earlier.
Thanks! 

Harry van der Wolf

unread,
Mar 13, 2021, 1:30:37 PM3/13/21
to osmand


Op za 13 mrt. 2021 om 19:15 schreef Helmut Jarausch <hjar...@gmail.com>:

Furthermore, the file "mycar15" in Android/data/net.osmand.plus/routing gets deleted after the next restart of OSMAnd. This happened earlier.
Thanks! 


Strange. I have never seen that.
Try to reboot your phone and before starting osmand to add the  profile.
Just to make sure: you type "mycar15", but I assume you mean "mycar15.xml"



Helmut Jarausch

unread,
Mar 18, 2021, 9:41:02 AM3/18/21
to osm...@googlegroups.com
Hi Harry, may I ask you to have a look at my xml file.
Can you change the heuristicCoeffient with a bleeding edge version of OSMAnd?
On my device the file car15.xml gets removed from  ..... /files/routing. 
Thanks,
Helmut 

--
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.

Harry van der Wolf

unread,
Mar 18, 2021, 3:54:49 PM3/18/21
to osmand


Op do 18 mrt. 2021 om 14:41 schreef Helmut Jarausch <hjar...@gmail.com>:
Hi Harry, may I ask you to have a look at my xml file.
Can you change the heuristicCoeffient with a bleeding edge version of OSMAnd?
On my device the file car15.xml gets removed from  ..... /files/routing. 
Thanks,
Helmut 


It works for me. I just downloaded the latest nightly and copied my own mycar15.xml into the routing folder. 
I started OsmAnd dev and created a new profile, where you first have to choose one of the standard profiles, in this case Car.
I saved the profile, reopened it and under navigation settings now selected my mycar15.xml profile.
It does not work immediately for some reason. I don't know why, and I don't know either whether it previously worked when clicking "Create new profile" and immediately being able to select the new one. 
Also when creating another new profile I can not directly select my mycar15.xml, but only the existing profiles, where my previously created profile "auto 1.5" is one of them.

See attached if you want to test mine and compare it with yours.
Feel free to share yours so I can have a look at it.

Harry
mycar15.xml

Helmut Jarausch

unread,
Mar 19, 2021, 2:18:08 PM3/19/21
to osm...@googlegroups.com
Many thanks Harry!
Your file works just fine here.
Helmut

--
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.
Reply all
Reply to author
Forward
0 new messages