General Comments

49 views
Skip to first unread message

Kevin McLaughlin

unread,
Mar 8, 2020, 4:57:07 PM3/8/20
to OsmAnd
Long time user of Osmand.
Been quite a while since I commented.

I used to keep several versions
on my phone. Using..
net.osmand
net.osmand.plus

However the 3.6.3 has been such a remarkable cleanup of the
menus for the different profiles, I'm dumping everything I used
to play around with. Great job with the new interface to the
the profiles. Cleaner! Elegant! Orthogonal! Not sure what the
best word is. I run Osmand on a $59 phone from 4 years ago.
And it works great.

About the routing. Yes sometimes a little slower than some of the other commercial
ones, but I played with all of them a lot over the past 4 years and I
"feel" osmand tends to give more logical results. Like not routing through
a big city instead of taking the bypass around the city. While it's cool to
see a 500 mile route. In reality I don't drive than way. I pick a spot down the road
to get going. Maybe a 100 miles. The points further down the road I pick in my head
while driving. Long distance plans just never seem to work out for me.

Saw the comments about "Cant find routing.xml"
Spent about an
hour last night looking at the internal

net.osmand/files/routing
net.osmand.plus/files/routing

and the external

net.osmand/files/routing
net.osmand.plus/files/routing

on versions 3.4.8, version 3.5.5, and version 3.6.3
And I used the file search menu of Fx file explorer.
So the guy that can't find it. I think he's right.

Never found the routing.xml
Which is fine with me as I have no
desire to optimize something that has
been optimized by people with a lot
more knowledge of what's going on "under the hood".

Just as an experiment I grabbed the "routing.xml" from the
install of apk. Using WinRar to look at the contents of the apk.
Found the routing.xml. Put it in the routing directory
and played with the heuristicCoefficient .
From the apk, the car route value is 1.5.
Changed it to 1.0.
Was not able to observe any difference on the calculation time
of a 50 mile route. But I have no idea if the app is even reading
the routing.xml from the directory I put it in so not much point
to the experiment. I personally don't think I should be screwing
with that value. Much simpler to "guide" a route with
"avoid road"
and
"intermediate points"

I can then jump to another application and get the same route.

Which by the way. The "Cruiser" app by "devemux86"
is really quite remarkable. Simple, lightweight. Routes
from point A to point B using car, bicycle, or foot.
Can learn the entire menu system is about 10 minutes.
If Osmand is the "swiss army knife" then "Cruiser"
is the "dagger" or "switch blade".
Osmand and Cruiser are the two navigation apps I keep
on my phone. If I had and mission to Mars, needed a navigation
system that my life depended on, it would probably be "Cruiser"

So to both camps. Keep up the great
work. The offline maps are great. And both
Apps are great!.
Kevin



 





Harry van der Wolf

unread,
Mar 8, 2020, 5:21:12 PM3/8/20
to osmand


Op zo 8 mrt. 2020 om 21:57 schreef Kevin McLaughlin <km14...@gmail.com>:

Saw the comments about "Cant find routing.xml"
Spent about an
hour last night looking at the internal


It is not the routing.xml itself. That is an xml file INSIDE the apk (an apk is actually a specially structured hierarchical) zip file.
If the user in the other topic meant that, he was right. I added 2 xml files to that post, and he mentioned he had copied those and cound not find them.
Maybe a big misunderstanding.
In that those internal zip folders are more files, like the "/net/osmand/router/routing.xml" or the "/net/osmand/osm/rendering_types.xml" or the "/net/osmand/render/default.render.xml". And many more. Some of them are unpacked to the Android file system to /Android/data/net.osmand(.dev | .plus)/files in the several subfolders. And some remain in the apk like the routing.xml.

You can copy the routing.xml into that routing folder inside "/Android/data/net.osmand(.dev | .plus)/files" and modify it, or make derivaties of it and copy those under different names into that folder.
Some other internal folders can be treated the same way.
 

Never found the routing.xml

Like mentioned above.
 
Just as an experiment I grabbed the "routing.xml" from the
install of apk. Using WinRar to look at the contents of the apk.
Found the routing.xml. Put it in the routing directory
and played with the heuristicCoefficient .
From the apk, the car route value is 1.5.
Changed it to 1.0.

No this is not correct. That 1.5 value is an "outcommented" value. If you altered that one it is still outcommented and will simply not work, like you described further in your mail.

Don't look at the top. Look at the header for the several <routingProfile .....
Below the default:
<routingProfile name="car" baseProfile="car" restrictionsAware="true" minSpeed="20.0" defaultSpeed="45.0" maxSpeed="130.0" leftTurn="5" rightTurn="5" roundaboutTurn="5" onewayAware="true">

Below my modified from mycar15
 <routingProfile name="mycar 1.5" baseProfile="car" restrictionsAware="true" minSpeed="20.0" defaultSpeed="45.0" maxSpeed="130.0" leftTurn="5" rightTurn="5" roundaboutTurn="5" heuristicCoefficient="1.5">

Note the heuristic coefficient at the end and also the altered name "mycar 1.5". Otherwise OsmAnd doesn't know which profile to use.
 

Harry

Kevin McLaughlin

unread,
Mar 8, 2020, 8:27:55 PM3/8/20
to OsmAnd
Yup.
Dummy me.
Brought the file into NotePad++
It understands the xml syntax.
Much easier to pick through.
Thx for the reply.
Not going to experiment with it anyway.
Like the way it works now.
And you guys keep up the good work.
Kevin
Reply all
Reply to author
Forward
0 new messages