SphericalDistance
SphericalDistance[{θ1,ϕ1},{θ2,ϕ2}] returns the great-circle distance between points {θ1,ϕ1} and {θ2,ϕ2} on the surface of a unit sphere.
SphericalDistance[{θ1,1,θ1,2,…,ϕ1},{θ2,1,θ2,2,…,ϕ2}] returns the geodesic distance between arbitrary-dimensional points on the surface of a unit hypersphere.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.