Finds the closest point on a segment.
The query point
The segment start
The segment end
The closest point and its distance in metres
Finds the closest point on a segment.