Licensed under the MIT/X11 License; see LICENSE.txt.
$ npm install geographiclib
In node, do
var GeographicLib = ;
Full documentation is provided at https://geographiclib.sourceforge.io/1.48/js/.
var GeographicLib =geod = GeographicLibGeodesicWGS84 r;// Find the distance from Wellington, NZ (41.32S, 174.81E) to// Salamanca, Spain (40.96N, 5.50W)...r = geod;console;// This prints "The distance is 19959679.267 m."// Find the point 20000 km SW of Perth, Australia (32.06S, 115.74E)...r = geod;console;// This prints "The position is (32.11195529, -63.95925278)."