Strange Routing

44 views
Skip to first unread message

Helmut Jarausch

unread,
Nov 1, 2019, 11:00:41 AM11/1/19
to osm...@googlegroups.com
Hi, I don't understand the routing of OSMAnd. I have the following situation:

D              x           I

                 O

I want to drive from O via I to D. 
There is a highway connecting D, x and I. 
OSMAnd suggests to drive from O to x to I (and back to x and D) 
This takes 2 hours and 2 minutes. 
Inserting an additional intermediate point on a country road between O and I gives a much shorter route of only 1 hour and 45 minutes. 
This is all with the standard car routing.
Can anybody understand OSMAnds routing here.
I have seen the car profile has "prefer highways" option which can't be turned off. 
How to teach OSMAnd to calculate the shortest (w.r.t time) route? 
Many thanks for a hint 
Helmut

If someone wants to try it himself here are the coordinates 
D : 50.80729° N, 6.17105° E
I  : 51.22824° N, 7.20733° E
O : 51.16853° N, 7.08233° E
additional intermediate point : 51.20348° N, 7.16982° E
One needs the map of Germany (Nordrhein-Westfalen) 

Harry van der Wolf

unread,
Nov 3, 2019, 3:22:00 AM11/3/19
to osmand
Hi, 
I only used O, I and D. 
When using OsmAnds default routing options under car, I get route 1 (see attached).
When using a modified routing using a hc=1.3 I also get route 1.
When using a modified routing uing hc=1.5, I get route 2 (attached, zoomed in).

Di you perhaps play with the heuristic coefficients? Like discussed in a previous post?
Please note that when using higher hc's, smaller details might get overlooked. I personally use hc=1.3 for "daily use", and 1.5 for long trips like on holidays and the like.

Both images have been reduced in size.
route 1
route1.jpg
route2
route2.jpg
 

Op vr 1 nov. 2019 om 16:00 schreef Helmut Jarausch <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/CA%2BCgGZQc_Es%2BKVEmhVi5d8awY6Z4AtSH%3Do%3DZenZpPmpxy14yvA%40mail.gmail.com.

Helmut Jarausch

unread,
Nov 3, 2019, 5:29:27 AM11/3/19
to osm...@googlegroups.com
Many thanks Harry for solving that mystery.
I did copied your mycar15.xml to... net.osmand.plus/files/Routing. 
But this heuristicCoefficient got used for the standard car profile as well.

Then I modified your mycar15.xml file (see the attached diff) and now it works! 
Helmut

mycar15.xml.diff
Reply all
Reply to author
Forward
0 new messages