[mkgmap-dev] class Numbers
From Gerd Petermann gpetermann_muenchen at hotmail.com on Mon Apr 20 10:31:43 BST 2015
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 at hotmail.com To: mkgmap-dev at 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 at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150420/96360327/attachment.html>
- Previous message: [mkgmap-dev] class Numbers
- Next message: [mkgmap-dev] class Numbers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list