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

Johan C osmned at gmail.com
Thu Oct 30 21:21:24 UTC 2014

```I don't have any programming skills, but I tested the plugin after Gertjan
programmed it: an example of this splitting of 'nodes on top of each other'
can be seen in the Vermeertoren in Delft:
http://www.openstreetmap.org/?mlat=52.01280&mlon=4.33795#map=19/52.01280/4.33795
(opening it in JOSM shows all nodes)

In the Dutch import we wanted to keep all address points within the
building and this method worked quite well. Though aligning them parallel
to the nearest street with the same name might also work

Cheers, Johan

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