Calculating the volume of a geodesic