<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi all,<br><br>I found a few more special cases:<br><a href="http://www.openstreetmap.org/way/33747687" target="_blank">http://www.openstreetmap.org/way/33747687</a><br><br>The way has three nodes, but the one in the middle<br>doesn't have any tags. The patch is not handling this<br>and will generate nodes at a wrong position.<br>I am not sure if the way is correct or not?<br><br>Another possible problem:<br>The wiki says"<br>If there is a house number on a single node or single building polygon 
and that house number also appears as the result of an interpolation, 
software should handle this case gracefully and favour the individually 
tagged house number as the real position. 
"<br>The patch doesn't implement it this way, but I'll try to code it tomorrow.<br><br>Gerd<br><br><br><br><br>&gt; Date: Sun, 7 Dec 2014 06:53:45 -0700<br><div>&gt; From: gpetermann_muenchen@hotmail.com<br>&gt; To: mkgmap-dev@lists.mkgmap.org.uk<br>&gt; Subject: [mkgmap-dev] [Patch v1] addr:interpolation<br>&gt; <br>&gt; Hi all,<br>&gt; <br>&gt; attached is a 1st try to implement the evaluation of the <br>&gt; addr:interpolation tag.<br>&gt; In some areas this is heavily used, so it really improves address search.<br>&gt; <br>&gt; addr-interpolation-v1.patch<br>&gt; &lt;http://gis.19327.n5.nabble.com/file/n5826523/addr-interpolation-v1.patch&gt;  <br>&gt; <br>&gt; The implementation is straight forward: <br>&gt; before style evaluation<br>&gt; - check for tag addr:interpolation, make sure the value is one of<br>&gt; "odd","even", or "all"<br>&gt; - if the way has two or more nodes with addr:housenumber=* and<br>&gt; addr:street=*,<br>&gt; the way is a candidate for the interpolation and a tag mkgmap:node-ids is<br>&gt; added to<br>&gt; the way to be able to find them later<br>&gt; <br>&gt; after style evaluation:<br>&gt; - for each pair of housenumber nodes :<br>&gt;     calculate the positions of the interpolated housenumbers and<br>&gt;   generate a node containing the housenumber and streetname<br>&gt; <br>&gt; I am not sure what to do with partly invalid data, e.g.<br>&gt; a way with addr:interpolation=odd in combination with more than two nodes,<br>&gt; the last<br>&gt; having an even number. The current implementation will generate odd nodes<br>&gt; for <br>&gt; all valid pairs in that way.<br>&gt; <br>&gt; Effect: When searching for an address, it is more likely that you<br>&gt; will not be pointed to a much higher or lower number.<br>&gt; I did not notice an increase of img size.<br>&gt; I assume in a few areas the additional calulations may require more CPU<br>&gt; or memory, but the effect should be rather small.<br>&gt; <br>&gt; Gerd<br>&gt; <br>&gt; <br>&gt; <br>&gt; --<br>&gt; View this message in context: http://gis.19327.n5.nabble.com/Patch-v1-addr-interpolation-tp5826523.html<br>&gt; Sent from the Mkgmap Development mailing list archive at Nabble.com.<br>&gt; _______________________________________________<br>&gt; mkgmap-dev mailing list<br>&gt; mkgmap-dev@lists.mkgmap.org.uk<br>&gt; http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                               </div></body>
</html>