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