{"name":"geographiclib-geodesic","version":"2.2.0","description":"JavaScript implementation of geodesic routines in GeographicLib","main":"geographiclib-geodesic.min.js","types":"types/geographiclib-geodesic.d.ts","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/geographiclib/geographiclib-js.git"},"url":"https://geographiclib.sourceforge.net","keywords":["geodesics","geometry","geographiclib","geography","geodesic problem","direct geodesic problem","inverse geodesic problem","geodesic calculator"],"devDependencies":{"mocha":"^9.1.5","minify":"^7.0.2"},"author":{"name":"Charles Karney","email":"karney@alum.mit.edu"},"contributors":[{"name":"Yurij Mikhalevich","email":"yurij@mikhalevi.ch"}],"license":"MIT","bugs":{"url":"https://github.com/geographiclib/geographiclib-js/issues","email":"karney@alum.mit.edu"},"homepage":"https://github.com/geographiclib/geographiclib-js#readme","directories":{"test":"test"},"_id":"geographiclib-geodesic@2.2.0","_integrity":"sha512-cIedo9VTYb0DFufodgibDmVfsWe9EASqb/kUByl09xc6PZYvLvlc89BHCThtGTPf2OII/zWJGxsR3Uz6O7QOVw==","_resolved":"/home/ckarney/git/geographiclib-js/BUILD/geographiclib-geodesic-2.2.0.tgz","_from":"file:geographiclib-geodesic-2.2.0.tgz","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-cIedo9VTYb0DFufodgibDmVfsWe9EASqb/kUByl09xc6PZYvLvlc89BHCThtGTPf2OII/zWJGxsR3Uz6O7QOVw==","shasum":"aa4eebfa798d4c80f8a2c3e28cbb76ecc3295622","tarball":"http://registry-npm.ywwl.com/geographiclib-geodesic/download/geographiclib-geodesic-2.2.0.tgz","fileCount":12,"unpackedSize":293960,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEkwngWjECpRQ+JULj/J+KIlyV9jQkHhSYSdmHWNkx3EAiEA0hHLrN+Am4PE5TenCXNHQDgfA1k/yDueSPzkylBoNjw="}],"size":73057,"noattachment":false,"key":"/geographiclib-geodesic/-/geographiclib-geodesic-2.2.0.tgz"},"_npmUser":{"name":"cffk","email":"karney@alum.mit.edu"},"maintainers":[{"name":"cffk","email":"karney@alum.mit.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/geographiclib-geodesic_2.2.0_1755869200087_0.7226221727935771"},"_hasShrinkwrap":false,"readme":"# JavaScript implementation of the geodesic routines in GeographicLib\n\nThis package is a JavaScript implementation of the geodesic routines\nfrom [GeographicLib](https://geographiclib.sourceforge.io).  This solves the\ndirect and inverse geodesic problems for an ellipsoid of revolution.\n\nPrior to version 2.0.0, this was a component of the [node package\ngeographiclib](https://www.npmjs.com/package/geographiclib).  As of\nversion 2.0.0, that package was split into the packages\n[geographiclib-geodesic](https://www.npmjs.com/package/geographiclib-geodesic)\n(this package) and\n[geographiclib-dms](https://www.npmjs.com/package/geographiclib-dms).\n[geographiclib](https://www.npmjs.com/package/geographiclib) will be\ndeprecated on 2023-05-01.\n\nLicensed under the MIT/X11 License; see\n[LICENSE.txt](https://geographiclib.sourceforge.io/LICENSE.txt).\n\n## Installation\n\n```bash\n$ npm install geographiclib-geodesic\n```\n\n## Usage\n\nIn [node](https://nodejs.org), do\n```javascript\nvar geodesic = require(\"geographiclib-geodesic\");\n```\n\n## Documentation\n\nFull documentation is provided at\n[https://geographiclib.sourceforge.io/JavaScript/doc](\nhttps://geographiclib.sourceforge.io/JavaScript/doc/index.html).\n\n## Examples\n\n```javascript\nvar geodesic = require(\"geographiclib-geodesic\"),\n    geod = geodesic.Geodesic.WGS84, r;\n\n// Find the distance from Wellington, NZ (41.32S, 174.81E) to\n// Salamanca, Spain (40.96N, 5.50W)...\nr = geod.Inverse(-41.32, 174.81, 40.96, -5.50);\nconsole.log(\"The distance is \" + r.s12.toFixed(3) + \" m.\");\n// This prints \"The distance is 19959679.267 m.\"\n\n// Find the point 20000 km SW of Perth, Australia (32.06S, 115.74E)...\nr = geod.Direct(-32.06, 115.74, 225, 20000e3);\nconsole.log(\"The position is (\" +\n            r.lat2.toFixed(8) + \", \" + r.lon2.toFixed(8) + \").\");\n// This prints \"The position is (32.11195529, -63.95925278).\"\n```\n\n## Authors\n\n* algorithms + js code: Charles Karney (karney@alum.mit.edu)\n* node.js port: Yurij Mikhalevich (yurij@mikhalevi.ch)\n","publish_time":1755869200278,"_cnpm_publish_time":1755869200278,"dist-tags":{"latest":"2.2.0"}}