logo separator

[mkgmap-dev] [patch v6] additional arcs‏

From Gerd Petermann gpetermann_muenchen at hotmail.com on Wed Feb 26 12:02:41 GMT 2014

oops, sorry, the parameter is 
--x-add-indirect-links

Gerd

From: gpetermann_muenchen at hotmail.com
To: mkgmap-dev at lists.mkgmap.org.uk
Date: Wed, 26 Feb 2014 11:10:37 +0100
Subject: Re: [mkgmap-dev] [patch v6] additional arcs‏




forgot to add the link to the binary:
http://files.mkgmap.org.uk/download/180/mkgmap.jar

Gerd

From: gpetermann_muenchen at hotmail.com
To: mkgmap-dev at lists.mkgmap.org.uk
Date: Wed, 26 Feb 2014 11:09:51 +0100
Subject: [mkgmap-dev] [patch v6] additional arcs‏




Hi all,
here is the next version of the patch. 

The additional arcs are now only added with the (undocumented) option
--x-add-indirect-arcs

I've also changed (again) the formular that mkgmap uses to calculate the 
length of a road (segment). 
With trunk r3057 we use
    final static double LENGTH_FACTOR = 3.2808 / 16;
    private static int convertMeters(double l) {
        return (int) (l * LENGTH_FACTOR);
    }
 for r3065 in the branch I've rounded the value:

return (int) (l * LENGTH_FACTOR + 0.5); 

In this new patch I use
    // units of 16 feet with one feet ~ 1/3 meter
    final static double LENGTH_FACTOR = 3.34 / 16;
    private static int convertMeters(double l) {
        return (int) (l * LENGTH_FACTOR + 0.5);
    }
 
That means that the travel time calculated with this patch is a bit higher.
I found the value looking at the travel time for a long "motorway-only" 
route. The length was 54.5 km, and this formular gets us close to 30 min
travel time for an avg. speed of 109 km on motorways.

Gerd
 		 	   		  

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev 		 	   		  

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20140226/adab9d0b/attachment.html>


More information about the mkgmap-dev mailing list