Hi Thorsten The obvious flag byte is src/uk/me/parabola/imgfmt/app/net/RoadDef.java: netFlags where the meaning of these bits is unknown: 0x80 0x08 0x04 - always set 0x01
There are other ways the Garmin IMG format uses to give meaning to things, eg ordering according to some type then, elsewhere, having a list of the offsets of where each type starts; I don't know if this is at all relevant in this case Ticker On Mon, 2025-02-24 at 13:46 +0100, Thorsten Kukuk via mkgmap-dev wrote: > Am 2025-02-20 11:50, schrieb Ticker Berkin via mkgmap-dev: > > Hi > > > > Not 100%, but pretty sure this flag affects routing. Car/Motorbike > > routing > > options on my device has flag saying something like "Avoid unpaved > > roads" which > > I always have set and I haven't been sent down an unpaved road yet. > > > > As in many things Garmin, there is duplication of many attributes in > > the routing > > and the Net/RoadDef structures. UNPAVED is only used in routing, > > whereas, say, > > ONEWAY is used in routing and netFlags; maybe there is a bit in this > > that means > > paved/unpaved, there are 4 unknown bits with one of them always set. > > If there are 4 unknown bits, maybe time to do a "brute force" testing > here? > What in the code do I need to change to set them? Then I could test with > my device if any of them affects calculation of unpaved vs paved > distances. > > Thorsten > > > On Mon, 2025-02-17 at 20:51 +0100, Thorsten Kukuk via mkgmap-dev wrote: > > > Hi, > > > > > > My Garmin Edge 1050 shows now for every tour in the statistic, how > > > many > > > percent of the roads are paved and how many unpaved. For my OSM maps, > > > it > > > shows always 100% paved. I even changed that value so that all ways > > > should be unpaved. (I hope it doesn't matter that the doc says > > > "mkgmap:unpaved=yes" while all examples and my style are using > > > "mkgmap:unpaved=1". > > > > > > Does anybody knows if this flag is really working/set correct or has > > > example maps where it is working? Except the original Garmin NT maps, > > > that ones are correct. > > > > > > Thanks, > > > Thorsten > > > _______________________________________________ > > > mkgmap-dev mailing list -- mkgmap-dev@lists.mkgmap.org.uk > > > To unsubscribe send an email to mkgmap-dev-le...@lists.mkgmap.org.uk > > > %(web_page_url)slistinfo/%(_internal_name)s > > > > _______________________________________________ > > mkgmap-dev mailing list -- mkgmap-dev@lists.mkgmap.org.uk > > To unsubscribe send an email to mkgmap-dev-le...@lists.mkgmap.org.uk > > %(web_page_url)slistinfo/%(_internal_name)s > _______________________________________________ > mkgmap-dev mailing list -- mkgmap-dev@lists.mkgmap.org.uk > To unsubscribe send an email to mkgmap-dev-le...@lists.mkgmap.org.uk > %(web_page_url)slistinfo/%(_internal_name)s _______________________________________________ mkgmap-dev mailing list -- mkgmap-dev@lists.mkgmap.org.uk To unsubscribe send an email to mkgmap-dev-le...@lists.mkgmap.org.uk %(web_page_url)slistinfo/%(_internal_name)s