logo separator

[mkgmap-dev] Address search Croatia

From Thorsten Kukuk kukuk at suse.de on Wed May 20 10:25:21 BST 2015

Hi,

On Wed, May 20, Thorsten Kukuk wrote:

> 
> Hi,
> 
> the problem is that there are no rules for Croatia in 
> inc/address.

And even worse: the admin_level boundaries are a nightmare, most are
incomplete. And for cities it looks like they don't use admin_level 
boundaries, but simple ways like this one:
https://www.openstreetmap.org/way/177736372

I don't understand enough how the addresses in Croatia are working
to implement some enhancements for inc/address, but it looks to me,
at first the croatia mapper need to fix the admin_level data.

Nevertheless, you could try this patch. I haven't tested it yet,
there are nearly no address informations in Croatia. But looking
at the OSM data for Zagreb, it should at least help there.
And I'm not sure about the order of this three lines ...

--- inc/address     6 May 2015 09:18:21 -0000       1.9
+++ inc/address     20 May 2015 09:23:23 -0000
@@ -42,6 +42,9 @@
 mkgmap:country=FIN & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8}' }
 mkgmap:country=FRA & mkgmap:city!=* & mkgmap:admin_level9=* { set mkgmap:city='${mkgmap:admin_level9}' }
 mkgmap:country=FRA & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8}' }
+mkgmap:country=HRV & mkgmap:city!=* & mkgmap:admin_level6='Grad Zagreb' { set mkgmap:city='Zagreb' }
+mkgmap:country=HRV & mkgmap:city!=* & mkgmap:admin_level7=* { set mkgmap:city='${mkgmap:admin_level7|subst:Grad =>}' }
+mkgmap:country=HRV & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8}' }
 mkgmap:country=ISL & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8}' }
 mkgmap:country=ITA & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8}' }
 mkgmap:country=LUX & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8}' }


  Thorsten

>   Thorsten
> 
> On Wed, May 20, thesurveyor at wolke7.net wrote:
> 
> > <html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi all,</div>
> > 
> > <div>&nbsp;</div>
> > 
> > <div>I&#39;ve started to create a map of Croatia.</div>
> > 
> > <div>I&#39;ve done and all seemed to work fine, but when I try to find an address it doesn&#39;t work.</div>
> > 
> > <div>&nbsp;</div>
> > 
> > <div>I even don&#39;t find major cities like &quot;Split&quot; in address search.</div>
> > 
> > <div>I&#39;m using my own style but I checked with default style - same result. For other countries it works.</div>
> > 
> > <div>I&#39;m using boundary files from 2015-02-06.</div>
> > 
> > <div>&nbsp;</div>
> > 
> > <div>Can someone check in his maps if it works for you? Any hints where to check?</div>
> > 
> > <div>&nbsp;</div>
> > 
> > <div>Thanks,</div>
> > 
> > <div>Gert</div>
> > 
> > <div>&nbsp;</div>
> > 
> > <div class="signature">&nbsp;</div></div></body></html>
> 
> > _______________________________________________
> > mkgmap-dev mailing list
> > mkgmap-dev at lists.mkgmap.org.uk
> > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> 
> 
> -- 
> Thorsten Kukuk, Senior Architect SLES & Common Code Base
> SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
> GF: Felix Imendörffer, Jane Smithard, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg)
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

-- 
Thorsten Kukuk, Senior Architect SLES & Common Code Base
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
GF: Felix Imendörffer, Jane Smithard, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg)


More information about the mkgmap-dev mailing list