To use SpheroidalDistance, you first need to load the Geodesy Package using Needs["Geodesy`"].
A point pti is expressed as a pair of numbers {latitude, longitude}.
Each coordinate latitude and longitude can be given in degrees, or as {degrees, minutes}, or {degrees, minutes, seconds}.
A negative value for a coordinate indicates that the coordinate is South latitude or West longitude.
Distances are returned in kilometers.
Note that the model is an approximation formula that only employs machine-precision computation. It is fairly accurate to distances of up to 10000 kilometers on the standard model of Earth.