I'm facing two problems, though: 1) I'm starting with lat/long coordinates, not cartesian coordinates; and 2) I'd like the algorithm to run in a mysql query. I already have a GEO_DISTANCE(lat1,lng1,lat2,lng2) function in mysql, and I can reproduce DistanceToSegment() in mysql, but I'm not confident that DistanceToSegment() works appropriately with lat/long coordinates. Any ideas here?
|Replies are listed 'Best First'.|
Re^3: Algorithm: point with N distance of a line between two other points
by Limbic~Region (Chancellor) on Nov 04, 2010 at 02:05 UTC