Hi all,

I'm writing code to determine on what side of the road houses are. I've
succeeded already in determining the side of the road when the direction
of roads is taken as reference but it needs adjustment for when
housenumbers are taken as reference.

What I want to know is: Am I on the right track or are there easier
ways?

What I do is:

I have lines connecting houses to streetsegments. 
First I determine with which section of the street this perpendicular
line intersects
Then I calculate the directions in degrees of both the streetsection and
the connection line.
With these 2 directions I can tell if the adress is on the right or the
left side of the street. That is: when line direction is taken as point
of departure.

Sometimes however you find streets where housenumbering is consequent in
one direction over the entire street while line direction of seperate
segments are opposite. Adjustment is needed thus. This part isn't
finished yet but I'm thinking of determining per segment if the first
housenumber is nearer to the last node than the last housenumber.

Is this the way to go about, or could this be done in a much better way?

Thanks,

Björn
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to