# [Imports] [Imports-us] New Orleans: importing buildings and addresses

Thu Oct 30 20:47:34 UTC 2014

```On Wed, Oct 29, 2014 at 5:29 AM, Gertjan Idema <g.idema at zonnet.nl> wrote:

>  Matt,
>
> The principle dividing up multiple addresses on the same location within
> the building is quite simple.
> If there are multiple addresses on one location within a building I do the
> following.
>
> 1. Sort the addresses by postcode, street, house number.
> 2. Determine the angle of the line pointing from the address location to
> the center of the building.
> 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.
> 4. Iterate over the address nodes and add  (i * delta x) to the x
> coordinate an (i * delta y) to the y coordinate.
>
> If the address location is at the center of the building, I set the angle
> to 0.
>
>
I'm having problems visualizing that in my head...  Picture?

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?
--