Hi all,

attached is v3 of the patch.
Major change to v2:
- change distance to road segment calculation
I noticed that some house numbers were associated with
the wrong part of a road.
Example:
The housenumber 22 from way 144166632 was
associated to the end of way 10049349 instead of
way 10049349. Both are named Ahornstraße
and form a T, the building is a the junction node.

@WanMil:
The code is still not 100% correct, as getFrac() should
probably use Math.cos() somewhere, else values
with large latitudes are very wrong.
Do you have a better one?

Gerd