Here "geodesic paths" refers to paths of shortest distance along the surface of a sphere. Midpoints along these paths are equidistant from the endpoints both in straight-line distance and in distance along the surface of the sphere. In the case in which a given pair of points are antipodes, there are an infinite number of geodesics between them, and thus an infinite number of geodesic midpoints. In this case, the midpoint on the equator with longitude closest to 0 is arbitrarily selected.
Kurt von Laven (2020). Geodesic Midpoints (https://www.mathworks.com/matlabcentral/fileexchange/50000-geodesic-midpoints), MATLAB Central File Exchange. Retrieved .
Added links to other FX submissions that this submission uses code from.
Inspired by: Spherical To Azimuthal Equidistant