
Hi Steve, could you try if this patch works for you. It contains all changed bits in the various headers I found so far in the latest version of Free Malaysia Maps. Maybe some garmins need all this stuff. If your garmin supports route simulations you also might try if recalculation works on there maps http://www.malfreemaps.net/MFMv150.exe Until know I was not able to decode 0x43. In simulation mode it is hard to measure the distance you really have to debug it on the road. I didn't noticed a different behavior between 0x110301 or 0x110401. Both worked fine on my nuvi. Berni. Steve Hosgood schrieb:
Steve Hosgood wrote:
Bernhard Heibler wrote:
Please let me know if this also works for you guys.
I hate to rain on the parade, but this *doesn't* work for me (Streetpilot i3).
Sadly I must confirm this. I built maps with mkgmap r991 (which has the "fix") last night but it's still the same 250m recalculate-distance on the Streetpilot i3.
What is (slightly) interesting is that the behaviour of the displayed map and the navigator on the i3 appear to be disjoint.
You can quite clearly see that the "you are here" triangle jumps onto the road you're really driving quite quickly as you depart from the navigated route. It's just that the navigator doesn't notice and doesn't announce "recalculating" until you're 250m off the navigator's route. I think this had always been the case, even with the old constant of 0xD0401 in the TRE header.
Am I the only guy in the world trying to run OSM maps on a Streetpilot? :-(
Steve
PS: I used the tool that I'd written to do a binary patch on existing maps on my genuine Garmin map, looking for TRE headers and printing the value of the mystery word at offset 0x43. There were plenty of them, and all were 0x110301.
------------------------------------------------------------------------
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Index: src/uk/me/parabola/imgfmt/app/net/NETHeader.java =================================================================== --- src/uk/me/parabola/imgfmt/app/net/NETHeader.java (revision 347) +++ src/uk/me/parabola/imgfmt/app/net/NETHeader.java (working copy) @@ -29,7 +29,7 @@ * @author Steve Ratcliffe */ public class NETHeader extends CommonHeader { - public static final int HEADER_LEN = 55; // Other lengths are possible + public static final int HEADER_LEN = 100; //55; // Other lengths are possible private static final char SORTED_ROAD_RECSIZE = 3; @@ -89,6 +89,9 @@ writer.putInt(0); writer.put((byte) 1); writer.put((byte) 0); + writer.putInt(0); + writer.put((byte) 1); + writer.putInt(0x01000000); } ImgFileWriter makeRoadWriter(ImgFileWriter writer) { Index: src/uk/me/parabola/imgfmt/app/net/NODHeader.java =================================================================== --- src/uk/me/parabola/imgfmt/app/net/NODHeader.java (revision 347) +++ src/uk/me/parabola/imgfmt/app/net/NODHeader.java (working copy) @@ -62,7 +62,8 @@ nodes.writeSectionInfo(writer); // now sets 0x02 (enable turn restrictions?) - writer.putInt(0x27); + //writer.putInt(0x27); + writer.putInt(0x0303); writer.putChar(align); writer.putChar((char) (align - 1)); Index: src/uk/me/parabola/imgfmt/app/trergn/TREHeader.java =================================================================== --- src/uk/me/parabola/imgfmt/app/trergn/TREHeader.java (revision 347) +++ src/uk/me/parabola/imgfmt/app/trergn/TREHeader.java (working copy) @@ -167,8 +167,8 @@ writer.put(getPoiDisplayFlags()); writer.put3(displayPriority); - writer.putInt(0xd0401); - + writer.putInt(0x110301); // Was 0xd0401 before. 31.03.2009 Changed to 0x110301 to increase route recalculation speed + writer.putChar((char) 1); writer.put((byte) 0);