<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>just noticed that img file starts with optional zip code info, followed by optional city info, <br>followed by numbers. <br>So, maybe it is not a good idea to combine them in one class?<br>Would that make reading difficult?<br>My current thinking is that we should have the number of RoadNumbers<br>before we start to read them (because we have the number of "Number nodes").<br>So, it should be possible to allocate an array of RoadNumbers instances<br>and fill those whenever we have data for one node.<br><br>Does that make sense?<br><br>Gerd<br><br><br><br><div><hr id="stopSpelling">From: gpetermann_muenchen@hotmail.com<br>To: mkgmap-dev@lists.mkgmap.org.uk<br>Date: Mon, 20 Apr 2015 09:23:32 +0200<br>Subject: [mkgmap-dev] class Numbers<br><br>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">Hi Steve,<br><br>I am still struggling with the new structures for city/zip codes.<br>We may add new fields like <br>leftCity,rightCity,leftZip,rightZip to class Numbers,<br>but I'd prefer to change the code completely.<br>Instead of the left/right prefix I'd prefer to have<br>class Numbers{<br>int start,end;<br>NumberStyle style;<br>CityInfo city; // class CityInfo contains fields city,region,country<br>String zip;<br>}<br><br><br>and a higher class,e,g.<br>class RoadNumbers{<br>int nodeNumber, rnodNumber ; // do we need both?<br>Numbers left,right;<br>}<br><br>and finally in RoadDef:<br>List<RoadNumbers> numbers;<br><br>What do you think about that?<br><br>Gerd<br>                                            </div>
<br>_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</div>                                            </div></body>
</html>