
Hi Steve, I just tried r451 on the img file from Andrzej NetCheck complains, but NetDisplay seems to extract most of the infos (it just doesn't decode the offsets into the LBL file) I am now trying to change the housenumber code so that it produces the additional lists. If I got that right, we need a new data structure containing a) the list of Numbers (as we have now) b) an optional list of zip codes , each a class with two fields: int rNode; String zipCode; c) an optional list of city names, each a class with 4 fields: int rNode; String city,region,country; we can also attach the two new lists to RoadDef, probably easier, but I'd prefer to have one structure. I guess we need some code to set the indexes into LBL etc. I hope you help with that. Gerd
Date: Thu, 16 Apr 2015 14:57:34 +0100 From: steve@parabola.me.uk To: mkgmap-dev@lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] inc/address and --housenumbers
Hi Gerd
When you say city I understand it is an int that points to a table of cities, and this table also contains corresponding region and country info?
Yes, it is the index into LBL4, which is the section that is printed by LblDisplay. That contains a link to either a region or a country. If a region, then the corresponding region section links to the country.
What about zip codes?
Line 217 in NetDisplay shows this printAddrInfo(d, addrFlags >> 2, "zip", zipSize); but I don't see corresponding code in printAddrInfo().
Are you fully up to date? I implemented zip's earlier today, but I managed to label them the wrong way round in the display. I've just committed a fix for that.
The zip integers are an index into LBL8 in the same way.
So, unusually, the polish format is not an close match to the format in this case. It has names for city,region,country which would mean that we would have to look up and if necessary create a matching city.
..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev