Hi Felix,
I think the results depends on the bounds file and your style.
For example, we used to have the rule
mkgmap:country!=* & addr:country=* { set mkgmap:country='${addr:country}' }
in inc/address. The tag addr:country typically contains a 3-byte-ISO code like AUT,
but we expect 2-byte-code in mkgmap:country.
So, now we have the rule
mkgmap:country!=* & addr:country=* { set mkgmap:country='${addr:country|country-ISO:}' }
I am not sure if the "wrong" value was written to the img file, but it caused problems in the
housenumber code. If that doesn't help, please post details that allow to reproduce the problem.
Gerd
Von: mkgmap-dev-bounces@lists.mkgmap.org.uk <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Felix Hartmann <extremecarver@gmail.com>
Gesendet: Mittwoch, 11. November 2015 23:16
An: Development list for mkgmap
Betreff: [mkgmap-dev] Country unification in address searchin locatorconfig.xml should solve this. How is it possible that I do get addresses in the wrong country? In Canada i.e. it's really bad.I thoughtAut -- find every result twice - but in essence it's the same as Österreich (AUT)Austria (AT) // AT (Austria)-- nearly no addresses found here - but it exists so some addresses are classified like thisÖsterreich (AUT) --- most addresses are found under this entry.Am I alone with the problem that for any country the unification of countries to a single choice in address search is not fully working?e.g. in Austria I get:
<country name="Österreich" abr="AUT" streetBeforeHousenumber="true" postalcodeBeforeCity="true">
<variant>Austria</variant>
<variant>AT</variant>
<variant>AUT</variant>
<variant>Oesterreich</variant>
<variant>Oestereich</variant>
<variant>Östereich</variant>
</country>
--
Austria - Österreich1040 WienFelix Hartman - Openmtbmap.org & VeloMap.orgFloragasse 9/11
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- keep on biking and discovering new trails Felix openmtbmap.org & www.velomap.org