Op zo 8 mrt. 2020 om 21:57 schreef Kevin McLaughlin <[email protected]>:

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

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osmand/CAGARPpvK0%3D71NMK3qtKZ_QrPNQu_SqeZESh3Mk08LrtRJv1t1Q%40mail.gmail.com.

Reply via email to