<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.2.2">
</HEAD>
<BODY>
For an extreme example, you can have a look at Europaplein 360 - 398 in Utrecht (With an editor).<BR>
Our reason for this solution is that we want to make sure that the addresses stay within the building contour. The imported dataset only guarantees that the addresses are within the building. When aligning the addresses parallel to the street, the address nodes could easily end up in a neighboring building. Also you would want to make sure the address numbers get aligned in the right direction along the street. And in The Netherlands, the addresses might be in different streets.<BR>
The algorithm would get quite complex if you wanted to solve all these issues.<BR>
<BR>
Gertjan<BR>
<BR>
<BR>
On Thu, 2014-10-30 at 15:47 -0500, Eric Ladner wrote:
<BLOCKQUOTE TYPE=CITE>
    On Wed, Oct 29, 2014 at 5:29 AM, Gertjan Idema <<A HREF="mailto:g.idema@zonnet.nl">g.idema@zonnet.nl</A>> wrote:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        Matt,<BR>
        <BR>
        The principle dividing up multiple addresses on the same location within the building is quite simple.<BR>
        If there are multiple addresses on one location within a building I do the following.<BR>
        <BR>
        1. Sort the addresses by postcode, street, house number.<BR>
        2. Determine the angle of the line pointing from the address location to the center of the building.<BR>
        3. From the angle and the desired distance between the address nodes, calculate a delta x an a delta y. Either or both may be negative.<BR>
        4. Iterate over the address nodes and add  (i * delta x) to the x coordinate an (i * delta y) to the y coordinate.<BR>
        <BR>
        If the address location is at the center of the building, I set the angle to 0.
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BR>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    I'm having problems visualizing that in my head...  Picture?
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    If it's doing what I think it's doing, whouldn't it make more sense to align the address nodes parallel to the nearest street with the same name?
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    -- <BR>
    Eric Ladner
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>