Original Post
I think image says it all.

Any suggestions?
If the line crosses the surface of the earth, distance should be 0.

Any suggestions?
If the line crosses the surface of the earth, distance should be 0.