{"name":"geographiclib-geodesic","version":"2.1.1","keywords":["geodesics","geometry","geographiclib","geography","geodesic problem","direct geodesic problem","inverse geodesic problem","geodesic calculator"],"author":{"name":"Charles Karney","email":"karney@alum.mit.edu"},"license":"MIT","_id":"geographiclib-geodesic@2.1.1","maintainers":[{"name":"cffk","email":"karney@alum.mit.edu"}],"contributors":[{"name":"Yurij Mikhalevich","email":"yurij@mikhalevi.ch"}],"homepage":"https://github.com/geographiclib/geographiclib-js#readme","bugs":{"url":"https://github.com/geographiclib/geographiclib-js/issues","email":"karney@alum.mit.edu"},"url":"https://geographiclib.sourceforge.net","dist":{"shasum":"5f9c02f2e0db5403055ba637f76d9e58b2215863","tarball":"http://registry-npm.ywwl.com/geographiclib-geodesic/download/geographiclib-geodesic-2.1.1.tgz","fileCount":12,"integrity":"sha512-lkd8EUkPSByobWu9BPMHTdYA5AUZxOa8McmUNtBE9KrvUJEvSADnN6gTDmhXbi6NzdA16LtWLpSxLE/lIIRhyA==","signatures":[{"sig":"MEUCIAx89+YPzD/Fk2f5dphY0flcpP4JEqXxR1GzFL/rTL3GAiEA+URN3O5FDWucN8kYe4AIATVXHyCAvgwFOUYAQOsY1YU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":290598,"size":72342,"noattachment":false,"key":"/geographiclib-geodesic/-/geographiclib-geodesic-2.1.1.tgz"},"main":"geographiclib-geodesic.min.js","_from":"file:geographiclib-geodesic-2.1.1.tgz","types":"types/geographiclib-geodesic.d.ts","scripts":{"test":"mocha"},"_npmUser":{"name":"cffk","email":"karney@alum.mit.edu"},"_resolved":"/home/ckarney/git/geographiclib-js/BUILD/geographiclib-geodesic-2.1.1.tgz","_integrity":"sha512-lkd8EUkPSByobWu9BPMHTdYA5AUZxOa8McmUNtBE9KrvUJEvSADnN6gTDmhXbi6NzdA16LtWLpSxLE/lIIRhyA==","repository":{"url":"git+https://github.com/geographiclib/geographiclib-js.git","type":"git"},"_npmVersion":"10.5.0","description":"JavaScript implementation of geodesic routines in GeographicLib","directories":{"test":"test"},"_nodeVersion":"20.12.2","_hasShrinkwrap":false,"devDependencies":{"mocha":"^9.1.5","minify":"^7.0.2"},"_npmOperationalInternal":{"tmp":"tmp/geographiclib-geodesic_2.1.1_1724003925090_0.43024758018531095","host":"s3://npm-registry-packages"},"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":1724003925239,"_cnpm_publish_time":1724003925239,"dist-tags":{"latest":"2.2.0"}}