<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>> Date: Sun, 7 Dec 2014 06:53:45 -0700<br><div>> From: firstname.lastname@example.org<br>> To: email@example.com<br>> Subject: [mkgmap-dev] [Patch v1] addr:interpolation<br>> <br>> Hi all,<br>> <br>> attached is a 1st try to implement the evaluation of the <br>> addr:interpolation tag.<br>> In some areas this is heavily used, so it really improves address search.<br>> <br>> addr-interpolation-v1.patch<br>> <http://gis.19327.n5.nabble.com/file/n5826523/addr-interpolation-v1.patch> <br>> <br>> The implementation is straight forward: <br>> before style evaluation<br>> - check for tag addr:interpolation, make sure the value is one of<br>> "odd","even", or "all"<br>> - if the way has two or more nodes with addr:housenumber=* and<br>> addr:street=*,<br>> the way is a candidate for the interpolation and a tag mkgmap:node-ids is<br>> added to<br>> the way to be able to find them later<br>> <br>> after style evaluation:<br>> - for each pair of housenumber nodes :<br>> calculate the positions of the interpolated housenumbers and<br>> generate a node containing the housenumber and streetname<br>> <br>> I am not sure what to do with partly invalid data, e.g.<br>> a way with addr:interpolation=odd in combination with more than two nodes,<br>> the last<br>> having an even number. The current implementation will generate odd nodes<br>> for <br>> all valid pairs in that way.<br>> <br>> Effect: When searching for an address, it is more likely that you<br>> will not be pointed to a much higher or lower number.<br>> I did not notice an increase of img size.<br>> I assume in a few areas the additional calulations may require more CPU<br>> or memory, but the effect should be rather small.<br>> <br>> Gerd<br>> <br>> <br>> <br>> --<br>> View this message in context: http://gis.19327.n5.nabble.com/Patch-v1-addr-interpolation-tp5826523.html<br>> Sent from the Mkgmap Development mailing list archive at Nabble.com.<br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> firstname.lastname@example.org<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>