[mkgmap-dev] [locator] Country specific rules
From navmaps navmaps at navmaps.eu on Sun May 8 00:43:26 BST 2011
Hi Carlos, I know this problem, because I live in a city where exactly that is the case. The solution for that as has been applied in the Netherlands and Belgium is to use a lower level boundary: in Belgium admin_level 9 is used as the primary boundary, in the Netherlands admin_level 10 is used as primary boundary (both before admin_level 8 is used in the style files). Cheers, Johan On Sat, 07 May 2011 23:25:03 +0200, Carlos Dávila <cdavilam at orangecorreo.es> wrote: > 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}' } > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
- Previous message: [mkgmap-dev] [locator] Country specific rules
- Next message: [mkgmap-dev] [locator] Country specific rules
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list