<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Felix,</p>
<p><br>
</p>
<p>I think the results depends on the bounds file and your style.</p>
<p>For example, we used to have the rule<br>
</p>
<p>mkgmap:country!=* & addr:country=* { set mkgmap:country='${addr:country}' }</p>
<p>in inc/address. The tag addr:country typically contains a 3-byte-ISO code like AUT,</p>
<p>but we expect 2-byte-code in mkgmap:country.</p>
<p>So, now we have the rule <br>
</p>
mkgmap:country!=* & addr:country=* { set mkgmap:country='${addr:country|country-ISO:}' }<br>
<br>
<p>I am not sure if the "wrong" value was written to the img file, but it caused problems in the
<br>
</p>
<p>housenumber code. If that doesn't help, please post details that allow to reproduce the problem.</p>
<p><br>
</p>
<p>Gerd<br>
</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Von:</b> mkgmap-dev-bounces@lists.mkgmap.org.uk <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Felix Hartmann <extremecarver@gmail.com><br>
<b>Gesendet:</b> Mittwoch, 11. November 2015 23:16<br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> [mkgmap-dev] Country unification in address search</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>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?<br>
<br>
</div>
e.g. in Austria I get:<br>
</div>
Österreich (AUT) --- most addresses are found under this entry.<br>
</div>
Austria (AT) // AT (Austria)-- nearly no addresses found here - but it exists so some addresses are classified like this<br>
</div>
Aut -- find every result twice - but in essence it's the same as Österreich (AUT)<br>
</div>
<br>
<br>
</div>
I thought <br>
<br>
<i> <country name="Österreich" abr="AUT" streetBeforeHousenumber="true" postalcodeBeforeCity="true"><br>
<variant>Austria</variant><br>
<variant>AT</variant><br>
<variant>AUT</variant><br>
<variant>Oesterreich</variant><br>
<variant>Oestereich</variant><br>
<variant>Östereich</variant><br>
</country><br>
</i><br>
</div>
in 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.
<br clear="all">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div><br>
-- <br>
<div class="gmail_signature">
<div dir="ltr">
<div>
<div>
<div>Felix Hartman - Openmtbmap.org & VeloMap.org<br>
</div>
Floragasse 9/11<br>
</div>
1040 Wien<br>
</div>
Austria - Österreich</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>