{"name":"@turf/rhumb-distance","version":"7.0.0-alpha.0","keywords":["turf","distance","rhumb line","rhumb","loxodrome","miles","km"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/rhumb-distance@7.0.0-alpha.0","contributors":[{"name":"Chris Veness","email":"@chrisveness"},{"name":"Stefano Borghi","email":"@stebogit"},{"name":"Denis Carriere","email":"@DenisCarriere"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"553f3f2d2b86a38c7da17325e8f17c6083823039","tarball":"http://registry-npm.ywwl.com/@turf/rhumb-distance/download/@turf/rhumb-distance-7.0.0-alpha.0.tgz","fileCount":7,"integrity":"sha512-97RpqMdhHIwagv2YWIvNL2n77CVvz1tF/qxrmrCjsmxuk1UQqUfrbBIIN5NOR3F8JDCEkpyEb2EZI8RYo/iIXg==","signatures":[{"sig":"MEYCIQCWI5gVJqxr/QJNFkFZyYtjVaOuj8Kaxsj5cbKP66nvSQIhAJd3/ZHgscot+btXfFtwHfT53gPjeVpl3L4MRC8A7oIJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12928,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja8OoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpq4xAAoOOM+ChDWF3rjUlQbOHYq5veE4xm7U1FbBNQd6OE1RH3MDh2\r\nrsE9LZLorMlLBmBp5NTdZAASd8Y1FOiw7/hCsWmB65ptR9L2q1qg4PUuBQ//\r\nqJgFULTh+mgplrp2o1nXLUkV6WkOmz3ug0a8QtkeVKNsYqSek9y+FyYUYhyT\r\nOd9O/H+r6MZYSxVcTrjskvV5naOIabycxFUPKFeXZpT8jdZkkw6otF0Mxbbw\r\nhpRLARWP9BV2CAcsH1pu0+db6PsJXj4g91E223Xc0dRwQeBQMG9oY49r053v\r\nP6aiRvcUay7a/ay5c+FaJsTZVM/KHdgGYMjHMe1Xx7Fl56jEnwtvqL4GbN/E\r\nPERfey42+HDlWaKIal8D+d/o7GL4AXHiOjfIvJGNTUAwP7OEP1fiwVE7tscG\r\nyicIvfRpgXfxNx7gP8shMByqA91RPSdwpBHYO+SRqNJYSmtDZYD1CfuLUZNl\r\nlNZE607e+MBtECaMPHAYwiyD6JGtslyPo4CYLMWKw6CffSn662R+G1E4evEo\r\noHAZJiDwyw+yu1SDjDbI6UyBkavr6QsYYfv3Ol/FgBHPOqgaWXYncXdj+zCl\r\nb2qt/cLGkrbyzzR4lznx8V+SlLGXiXuEHM5fKa2VL3/Jhhx9oa1fzv62e/bU\r\n+4MSHExHVB6kVQ+tfDUuIa78g7Qg8C6JSu4=\r\n=7t5E\r\n-----END PGP SIGNATURE-----\r\n","size":3984,"noattachment":false,"key":"/@turf/rhumb-distance/-/@turf/rhumb-distance-7.0.0-alpha.0.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","exports":{".":{"import":"./dist/es/index.js","require":"./dist/js/index.js"},"./package.json":"./package.json"},"funding":"https://opencollective.com/turf","gitHead":"0edc4c491b999e5ace770a61e1cf549f7c004189","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all test:*","bench":"ts-node bench.js","build":"npm-run-all build:*","build:es":"tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json","build:js":"tsc","test:tape":"ts-node -r esm test.js"},"_npmUser":{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v19.0.1+arm64 (darwin)","description":"turf rhumb-distance module","directories":{},"sideEffects":false,"_nodeVersion":"19.0.1","dependencies":{"tslib":"^2.3.0","@turf/helpers":"^7.0.0-alpha.0","@turf/invariant":"^7.0.0-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","tslint":"*","ts-node":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*","@turf/distance":"^7.0.0-alpha.0","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/rhumb-distance_7.0.0-alpha.0_1668006824053_0.391883017362163","host":"s3://npm-registry-packages"},"readme":"# @turf/rhumb-distance\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## rhumbDistance\n\nCalculates the distance along a rhumb line between two [points][1] in [Units][2]\n\n### Parameters\n\n*   `from` **[Coord][3]** origin point\n*   `to` **[Coord][3]** destination point\n*   `options` **[Object][4]?** Optional parameters (optional, default `{}`)\n\n    *   `options.units` **Units** Supports all valid Turf [Units][2] (optional, default `'kilometers'`)\n\n### Examples\n\n```javascript\nvar from = turf.point([-75.343, 39.984]);\nvar to = turf.point([-75.534, 39.123]);\nvar options = {units: 'miles'};\n\nvar distance = turf.rhumbDistance(from, to, options);\n\n//addToMap\nvar addToMap = [from, to];\nfrom.properties.distance = distance;\nto.properties.distance = distance;\n```\n\nReturns **[number][5]** distance between the two points\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.1.2\n\n[2]: https://turfjs.org/docs/api/types/Units\n\n[3]: https://tools.ietf.org/html/rfc7946#section-3.1.1\n\n[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number\n\n<!-- This file is automatically generated. Please don't edit it directly. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run \"yarn docs\" from the root of the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](https://turfjs.org/), an open source module collection dedicated to geographic algorithms. It is maintained in the [Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create PRs and issues.\n\n### Installation\n\nInstall this single module individually:\n\n```sh\n$ npm install @turf/rhumb-distance\n```\n\nOr install the all-encompassing @turf/turf module that includes all modules as functions:\n\n```sh\n$ npm install @turf/turf\n```\n","publish_time":1668006824204,"maintainers":[{"name":"smallsaucepan","email":"james@smallsaucepan.com"},{"name":"morgan.herlocker","email":"morganherlocker@gmail.com"},{"name":"twelch","email":"tim.j.welch@gmail.com"},{"name":"jamesmilneruk","email":"jamesmilner22@hotmail.com"},{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tmcw","email":"tom@macwright.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"}],"_cnpm_publish_time":1668006824204,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}