<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi all,<br>here is the next version of the patch. <br><br>The additional arcs are now only added with the (undocumented) option<br>--x-add-indirect-arcs<br><br>I've also changed (again) the formular that mkgmap uses to calculate the <br>length of a road (segment). <br>With trunk r3057 we use<br> final static double LENGTH_FACTOR = 3.2808 / 16;<br> private static int convertMeters(double l) {<br> return (int) (l * LENGTH_FACTOR);<br> }<br> for r3065 in the branch I've rounded the value:<br><br>return (int) (l * LENGTH_FACTOR + 0.5); <br><br>In this new patch I use<br> // units of 16 feet with one feet ~ 1/3 meter<br> final static double LENGTH_FACTOR = 3.34 / 16;<br> private static int convertMeters(double l) {<br> return (int) (l * LENGTH_FACTOR + 0.5);<br> }<br> <br>That means that the travel time calculated with this patch is a bit higher.<br>I found the value looking at the travel time for a long "motorway-only" <br>route. The length was 54.5 km, and this formular gets us close to 30 min<br>travel time for an avg. speed of 109 km on motorways.<br><br>Gerd<br>                                            </div></body>
</html>