<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>attached is a patch to implement the evaluation.<br>Idea:<br>Evalute the street name and add a tag<br>mkgmap:street to all members of the <br>relation which seem to be houses.<br>This is done before the way or node members<br>are processed by the style.<br><br>I found a lot of special cases caused by wrong <br>OSM data or unclear specifications.<br>Many of the relations seem to be obsolete in my area<br>because of redundancy.<br>The HousenumberGenerator will print corresponding messages to the log.<br><br>Sample:<br><a href="http://www.openstreetmap.org/relation/53214" target="_blank">http://www.openstreetmap.org/relation/53214</a><br>contains a relation as member which is not documented in the wiki,<br>but I think it can be used anyway.<br><br>A few relations don't contain any houses, e.g. <br><a href="http://www.openstreetmap.org/relation/307824" target="_blank">http://www.openstreetmap.org/relation/307824</a><br>(they are ignored)<br><br>Some elements of these relations have a <br>tag addr:street with a different street name, e.g.<br><a href="http://www.openstreetmap.org/way/65489730" target="_blank">http://www.openstreetmap.org/way/65489730</a><br>(The patch will not change the handling of them)<br><br>This building is member of two relations:<br><a href="http://www.openstreetmap.org/way/182040392" target="_blank">http://www.openstreetmap.org/way/182040392</a><br>(not sure what to do with it, the patch will not change the handling of it)<br><br>Some relations have no effect because all house members<br>have a corresponding addr:street tag, e.g.<br><a href="http://www.openstreetmap.org/relation/2886266" target="_blank">http://www.openstreetmap.org/relation/2886266</a><br><br>This house probably has a wrong addr:street tag:<br><a href="http://www.openstreetmap.org/way/245203798" target="_blank">http://www.openstreetmap.org/way/245203798</a><br>as many more houses in the relation<br><a href="http://www.openstreetmap.org/relation/3315084" target="_blank">http://www.openstreetmap.org/relation/3315084</a><br>The patch will not correct this wrong tag.<br><br>Gerd<br><br><div><hr id="stopSpelling">From: gpetermann_muenchen@hotmail.com<br>To: mkgmap-dev@lists.mkgmap.org.uk<br>Date: Mon, 1 Dec 2014 08:02:32 +0100<br>Subject: Re: [mkgmap-dev] relation associatedStreet<br><br>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">Hi Andrzej,<br><br>it seems easy to use the information provided by the relation.<br>I'll have a look at it.<br>The current algo searches for the closest street, so I think that the<br>evaluation of the relation will only help in cases were a building<br>is close to one street but the relation says that the address is another<br>one.<br><br>Gerd<br><br><div>> Date: Sun, 30 Nov 2014 14:25:03 +0100<br>> From: popej@poczta.onet.pl<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: [mkgmap-dev] relation associatedStreet<br>> <br>> Hi,<br>> <br>> I can't find references in mkgmap code to relation associatedStreet. Is <br>> it supported?<br>> http://wiki.openstreetmap.org/wiki/Relation:associatedStreet<br>> <br>> This relation bounds houses to streets. I think it should be used by <br>> mkgmap to add housenumbers to streets. Relation can't be described in <br>> style, since it is defined basing on members role instead of tags. <br>> Example of use could be following:<br>> <br>> <node id="101" Lat="12.31" Lon="4.56"><br>> <tag k="addr:housenumber" v="5"/><br>> </node><br>> <br>> <way id="12"><br>> <nd ref="200"><br>> <nd ref="201"><br>> <tag k="highway" v="tertiary"/><br>> <tag k="name" v="Long Street"/><br>> </node><br>> <br>> <relation id="3"><br>> <member type="node" ref="101" role="house" /><br>> <member type="way" ref="12" role="street" /><br>> <tag k="type" v="associatedStreet" /><br>> </relation><br>> <br>> Can mkgmap find that house number 5 belongs to Long Street?<br>> <br>> -- <br>> Best regards,<br>> Andrzej<br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div>
<br>_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</div>                                            </div></body>
</html>