
Hi everyone, first of all I would like to thank you guys for the great work you did so far. The new routing support works pretty good for local routing. I also noticed the wired "Autobahn by plane" problem on the A8 Salzburg-Munich like described on the osmwiki page. One major problem I have with my homemade maps on my Nuvi 360 is that I could not enter the address where I would like to go. If I try my Nuvi wants me to enter "US State" If I enter something it tells me that there are no states in this map which is true. The only way to select the destination is to use POI/City. I know that the generation of the street data will not be easy since most streets are not assigned to a city. Anyway I tried to enter some static data for Country/Region/City into the LBL portion. Please see the patched code at the end of this message. Problem is that my data doesn't impress my Nuvi at all. It still asks for the State and doesn't ask for a country at all. The only success I had is that my data shows up in GPSMapEdit->Tools->Edit Postal Adress Items. The data is correct if the index for country/region starts with 1 and not 0. I also found out that mapedit doesn't like the delimiter 0x1D between name and abbreviation. Does anybody know if there is a bit to tell the Nuvi that this is not a US map with states ? The Nuvi behaves with the basemap the same way. Any hints on the "destination by address" topic are welcome ... Thanks Berni. Index: src/uk/me/parabola/imgfmt/app/lbl/PlacesFile.java =================================================================== --- src/uk/me/parabola/imgfmt/app/lbl/PlacesFile.java (revision 828) +++ src/uk/me/parabola/imgfmt/app/lbl/PlacesFile.java (working copy) @@ -79,7 +79,7 @@ } Country createCountry(String name, String abbr) { - Country c = new Country(countries.size()); + Country c = new Country(countries.size()+1); String s = abbr != null ? name + 0x1d + abbr : name; @@ -91,7 +91,7 @@ } Region createRegion(Country country, String name) { - Region r = new Region(country, regions.size()); + Region r = new Region(country, regions.size()+1); Label l = lblFile.newLabel(name); r.setLabel(l); @@ -101,7 +101,7 @@ } City createCity(Region region, String name) { - City c = new City(region, cities.size()); + City c = new City(region, cities.size()+1); Label l = lblFile.newLabel(name); c.setLabel(l); @@ -111,7 +111,7 @@ } Zip createZip(String code) { - Zip z = new Zip(postalCodes.size()); + Zip z = new Zip(postalCodes.size()+1); Label l = lblFile.newLabel(code); z.setLabel(l); @@ -129,6 +129,7 @@ p.setLabel(l); pois.add(p); + return p; } Index: src/uk/me/parabola/imgfmt/app/lbl/LBLFile.java =================================================================== --- src/uk/me/parabola/imgfmt/app/lbl/LBLFile.java (revision 828) +++ src/uk/me/parabola/imgfmt/app/lbl/LBLFile.java (working copy) @@ -138,6 +138,19 @@ public POIRecord createPOI(String name) { return places.createPOI(name); } + + public Country createCountry(String name, String abbr) { + return places.createCountry(name, abbr); + } + + public Region createRegion(Country country, String region) { + return places.createRegion(country, region); + } + + public City createCity(Region region, String city) { + return places.createCity(region, city); + } + public void allPOIsDone() { places.allPOIsDone(); Index: src/uk/me/parabola/mkgmap/build/MapBuilder.java =================================================================== --- src/uk/me/parabola/mkgmap/build/MapBuilder.java (revision 828) +++ src/uk/me/parabola/mkgmap/build/MapBuilder.java (working copy) @@ -25,6 +25,8 @@ import uk.me.parabola.imgfmt.app.Coord; import uk.me.parabola.imgfmt.app.lbl.LBLFile; import uk.me.parabola.imgfmt.app.lbl.POIRecord; +import uk.me.parabola.imgfmt.app.lbl.Country; +import uk.me.parabola.imgfmt.app.lbl.Region; import uk.me.parabola.imgfmt.app.map.Map; import uk.me.parabola.imgfmt.app.net.NETFile; import uk.me.parabola.imgfmt.app.net.NODFile; @@ -138,6 +140,21 @@ */ private void processPOIs(Map map, MapDataSource src) { LBLFile lbl = map.getLblFile(); + + Country d = lbl.createCountry("Deutschland","GER"); + + Country a = lbl.createCountry("Oesterreich","AUT"); + + Region b = lbl.createRegion(d,"Bayern"); + lbl.createRegion(d,"Sachsen"); + lbl.createRegion(d,"Berlin"); + lbl.createRegion(d,"Hamburg"); + lbl.createRegion(a,"Tirol"); + lbl.createRegion(a,"Salzburg"); + + lbl.createCity(b,"Rosenheim"); + lbl.createCity(b,"Traunstein"); + for (MapPoint p : src.getPoints()) { POIRecord r = lbl.createPOI(p.getName()); poimap.put(p, r);
participants (1)
-
Bernhard Heibler