Ported GeographicLib ( http://geographiclib.sourceforge.net/ )