To compute the minimum distance to the line, you can use the formula described here:
http://local.wasp.uwa.edu.au/~pbourke/geometry/pointline/ At one point, it will compute the point along the line which is closest to the other point, you can use the haversine formula with these two points. newbie wrote: > Dear All, > Just say I got a pair of lat and long p1 and p2 and I draw a line > based on both the points. So now I want to know if a particular point in the > parallel range of say 50m either on left or right sides of the line. How can > I decide this what is the formula please ? > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
