[OSM-dev] Getting a distance to a way

Sven Anders sven at anders-hamburg.de
Mon Jul 21 08:29:35 BST 2008


Has someone a working algorithm to get the shortest distance from a node to a 
way?

I try to explain it a 

Given a way between to nodes
lat1,lon1 -------------> lat2,lon2

and a node latN,lonN.

Wanted:

 the length of the linear distance between the way and the node (latN,lonN).


Best Regards
Sven






More information about the dev mailing list