I want REALLY shortest route

179 views
Skip to first unread message

Ed f

unread,
Sep 22, 2022, 1:38:36 PM9/22/22
to OsmAnd
but although I have set a profile with energy saving, no highways, do not avoid unpaved roads, do not avoid 4wheel-tracks, allow even private roads - osmand still does not always chose the small white roads I prefer when cruising the landscape. is there any way to change that for the better?

Harry van der Wolf

unread,
Sep 25, 2022, 9:25:00 AM9/25/22
to osm...@googlegroups.com
This has to do with the penalty values for lower order roads and the priority values for the several road types in the routing.xml
No highways means that it will still try to find the highest priority roads except highways,
"do not avoid" is something else than "prefer" (unpaved roads).
If you create your own (renamed) routing.xml (the default routing.xml contains multiple profiles) and upload that in your own OsmAnd, you can completely destroy the smart optimized way-find algorithm and it will then simply use any road that gives your the shortest distance.
You could copy the "auto profile" and remove the rest and renamed to "myshortestway.xml" and do not forget to rename the profile name itself.

Also search in the blogs and technical articles on osmand.net
Then download the routing.xml (https://github.com/osmandapp/OsmAnd-resources/blob/master/routing/routing.xml) and see if you are still interested in modifying that.
Then search this mail thread. I once or twice wrote, at least a year ago, how I created them.

Harry

Op do 22 sep. 2022 om 19:38 schreef 'Ed f' via OsmAnd <osm...@googlegroups.com>:
but although I have set a profile with energy saving, no highways, do not avoid unpaved roads, do not avoid 4wheel-tracks, allow even private roads - osmand still does not always chose the small white roads I prefer when cruising the landscape. is there any way to change that for the better?

--
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/941ca250-1b85-4dd9-942e-53aeb04a5a0an%40googlegroups.com.

Harry van der Wolf

unread,
Sep 25, 2022, 9:52:53 AM9/25/22
to osm...@googlegroups.com
Well,

please find attached one that should come as close as possible to what you want.
Import it as new profile or copy it inside "Android/data/net.osmand.plus/files/routing" or "Android/data/net.osmand/files/routing". Completely exit OsmAnd and start creating/modifying a profile.
Note: This one can (!) lead you to unpaved paths that are absolutely unsuitable for any car, even the best 4-wheel drives (ice roads in summer?).
As it is based on the normal car profile, it will prevent you from driving into one-way streets, streets with blockades, or other limitations/restrictions you have to (legally) follow up.
Experiment further.

Op zo 25 sep. 2022 om 15:24 schreef Harry van der Wolf <hvd...@gmail.com>:
shortestway.xml

Ed f

unread,
Feb 23, 2023, 12:32:10 PM2/23/23
to OsmAnd
hi harry! can I still use this and others of you xmls with todays osmand? with the new phone I have lost all my experienced settings and have to tune again ;-) thank you!

Harry van der Wolf

unread,
Feb 23, 2023, 12:38:37 PM2/23/23
to osm...@googlegroups.com


Op do 23 feb. 2023 om 18:32 schreef 'Ed f' via OsmAnd <osm...@googlegroups.com>:
hi harry! can I still use this and others of you xmls with todays osmand? with the new phone I have lost all my experienced settings and have to tune again ;-) thank you!


Yes, you can. Still works the same. 
Reply all
Reply to author
Forward
0 new messages