Calculate geodesic caluculations