<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 Andrzej,<br><br>I read the cgpsmapper manual, if I got that right<br>the additional city names are only used in indexes, <br>and I assume that there is no limit in those structures,<br>so you are probably right, I don't have to split a road<br>because it is in different cities, I just have to pass the information<br>to the routines which build the indexes.<br><br> @Steve: <br>If wonder if we should change the data structures for this.<br>Current code has the class MapElement with<br>these fields:<br>private String zip,country,region,city,street,phone,houseNumber,isIn;<br><br>If we change zip, country,region, and city to String[] arrays as with <br>String[] labels;<br>we will waste a lot of memory when almost of them contain a single <br>String reference.<br>On the other hand, we probably have many objects with identical <br>values in these fields.<br>I think we can use a dictionary for this.<br>The dictionary would contain one entry for each different combination of<br>the values and MapElement would contain an index to the dictionary entry.<br>I have to check that, but I think in the end we might safe memory with that.<br><br>Gerd<br><br><br><div>> Date: Wed, 15 Apr 2015 14:07:55 +0200<br>> From: popej@poczta.onet.pl<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] inc/address and --housenumbers<br>> <br>> Hi Gerd,<br>> <br>> > 2) A road may be the border or very close to the border of a city.<br>> > Houses on the left side are in city A, houses on the other side are<br>> > in city B. I think in this case we should add the road twice to the<br>> > map so that address search works.<br>> <br>> A road at the border of 2 cities can have 2 different addresses, <br>> including road name, zip code, city and region. Maybe country too? I <br>> don't think that duplicating road object is a right solution. Road name <br>> can be added as a second label, I hope that other data can have multiple <br>> values too.<br>> <br>> Cgpsmapper allows for 2 addresses for a road, it probably doesn't <br>> duplicate road line, but I haven't checked.<br>> <br>> -- <br>> Best regards,<br>> Andrzej<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>