Calculate the distance between two points on the Earth's surface.