For example: Lets say, we have some kind of straight wall on the earth map, and we know lat/lon coordinates of it's start and finish points:
wall.start.lat, wall.start.lon
wall.end.lat, wall.end.lon
And also we have some kind of object aside:
object.lat
object.lon
What i need is to find the closest point of the wall to this object if i will walk from that object to the wall on the surface.
It's pretty easy to solve on the plane, but i've stuck with sphere.