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