{"name":"@turf/rhumb-distance","version":"6.2.0-alpha.1","keywords":["turf","distance","rhumb line","rhumb","loxodrome","miles","km"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/rhumb-distance@6.2.0-alpha.1","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":"6bf9adf30547d09db2fa2198c1470366f9d62d14","tarball":"http://registry-npm.ywwl.com/@turf/rhumb-distance/download/@turf/rhumb-distance-6.2.0-alpha.1.tgz","fileCount":6,"integrity":"sha512-u4GrlcRcZ0EmsmaXaXL8zaoJkt1b//scIzlkQd3tIoif4A9izqNcU7rT0J+jBzIFHSvxQ1aAcQJ4W6yo0Y0Jpg==","signatures":[{"sig":"MEUCIQChZORI05etfMEbmSDYqbsmkuEDPsz+VuUvKEeqkrXHiQIgQo2qLY7Oj7dtds9hiPR4YshQ206dpFd2D2S6QdQyAKc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefUJnCRA9TVsSAnZWagAAkiUP/2Rcg0xmJF/4HthsCZYr\nTtI8z2EKHSR9aC3IDQvisE2muYAL7+R5vvA2Axbix1JUuWRb2pwL0sl9Ohxe\ngfeqR/tnYt8aaxbaVcdWC4M78Xhrqv4xc+kNaD33N0yv7Ww+gE261Iy8sbMf\nf/iAksPG4uVTm4vu/PBwbuaAkFIHvObhEUQC/sVr3zlovW7itoErxvF451Wg\nKxG6Dp+mHnSJVXP6GRE9Lh5KRCnkjI+7BO/I7XGUbEZtfTCgsO1W5sWBdYOz\n5D3bib49OBDYDstNw7MXUPqiK8D8SVaxKh/ELVvZcz3uXCB/+niWcH+UTmL5\nzRlOlu1XwxJDPh7zC6BcH8R4VoJwjyZuoomPkhI7BPfBRdKr1MYXz2qiqkAK\nVYDGgLK1wwwKMczifxOSfc4zQTW6F0zeL+hozCF+OoVrVjrSOakp8tpKo535\nE7mqk6mcPvxgSx6WZpH7NcjDPfwRfn+73pQ87Sj2Jhqkhj9MmGDxUWLrydMw\nT7DhAVAlVsn8WVNZagESRCnqMsfaz7ldOgWZVDKrX+70c5wo325SqBMbDrHI\nVAgrgC+nLUDm6jKVjfRbPmQWJanyVJ1jbG1ebIMVQkWcWe9SFANAgUd7zi8o\nTyuFR0Xcb3uWTv58wswPNKNdMzg43IzXFWCLNHbQuX+NVThbshvswCT3xyrh\nyekj\r\n=vJ+t\r\n-----END PGP SIGNATURE-----\r\n","size":3838,"noattachment":false,"key":"/@turf/rhumb-distance/-/@turf/rhumb-distance-6.2.0-alpha.1.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","gitHead":"fc519c045a8931c1e14eab9160a7e28391f8da02","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all prepare test:*","bench":"npm-run-all prepare bench:run","prepare":"npm-run-all prepare:*","bench:run":"node bench.js","test:tape":"node -r esm test.js","prepare:es":"tsc --outDir dist/es --module esnext --declaration false","prepare:js":"tsc"},"_npmUser":{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/3.20.2/node@v13.10.1+x64 (darwin)","description":"turf rhumb-distance module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/helpers":"^6.2.0-alpha.1","@turf/invariant":"^6.2.0-alpha.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","tslint":"*","benchmark":"*","typescript":"*","@types/tape":"*","@turf/distance":"^6.2.0-alpha.1","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/rhumb-distance_6.2.0-alpha.1_1585267302633_0.4127890529541327","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":1585267302736,"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":1585267302736,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}