logo separator

[mkgmap-dev] [locator] Country specific rules

From Carlos Dávila cdavilam at orangecorreo.es on Sat May 7 22:25:03 BST 2011

El 06/05/11 17:41, Carlos Dávila escribió:
> El 05/05/11 00:50, navmaps escribió:
>>    Hi Carlos, it's my experience that skipping is_in, addr: and openGeoDB
>>    works best for the Garmin index. What you'll then see is that some OSM
>>    boundaries need to be improved. But getting that done will create a
>>    perfectly working index (except for adresses, but it's always nice to
>>    have some wishes for the future :-) )
> Thank you for the information, I'll try your suggestion. Last week I
> spent quite a lot of time improving boundaries, so I hope I can
> currently get good results.
You were right, with the rules below I get rid of most wrong 
State/Province in search dialog. I would keep is_in:city and addr:city 
because there may be more than one city/village/hamlet within an 
admin_level=8 boundary (municipalities) and they may help get the right 
place.

mkgmap:country!=* & mkgmap:admin_level2=* { set 
mkgmap:country='${mkgmap:admin_level2}' }

mkgmap:region!=* & mkgmap:admin_level6=* { set 
mkgmap:region='${mkgmap:admin_level6}' }
mkgmap:region!=* & mkgmap:admin_level5=* { set 
mkgmap:region='${mkgmap:admin_level5}' }
mkgmap:region!=* & mkgmap:admin_level4=* { set 
mkgmap:region='${mkgmap:admin_level4}' }
mkgmap:region!=* & mkgmap:admin_level3=* { set 
mkgmap:region='${mkgmap:admin_level3}' }

mkgmap:city!=* & is_in:city=* { set mkgmap:city='${is_in:city}' }
mkgmap:city!=* & addr:city=* { set mkgmap:city='${addr:city}' }
mkgmap:city!=* & mkgmap:admin_level8=* { set 
mkgmap:city='${mkgmap:admin_level8}' }
mkgmap:city!=* & mkgmap:admin_level7=* { set 
mkgmap:city='${mkgmap:admin_level7}' }
mkgmap:city!=* & mkgmap:admin_level9=* { set 
mkgmap:city='${mkgmap:admin_level9}' }
mkgmap:city!=* & mkgmap:admin_level10=* { set 
mkgmap:city='${mkgmap:admin_level10}' }



More information about the mkgmap-dev mailing list