{"name":"@turf/rhumb-distance","version":"6.5.0","keywords":["turf","distance","rhumb line","rhumb","loxodrome","miles","km"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/rhumb-distance@6.5.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":"ed068004b1469512b857070fbf5cb7b7eabbe592","tarball":"http://registry-npm.ywwl.com/@turf/rhumb-distance/download/@turf/rhumb-distance-6.5.0.tgz","fileCount":7,"integrity":"sha512-oKp8KFE8E4huC2Z1a1KNcFwjVOqa99isxNOwfo4g3SUABQ6NezjKDDrnvC4yI5YZ3/huDjULLBvhed45xdCrzg==","signatures":[{"sig":"MEYCIQDQTvs/artpxVclxlsv6y7bH4QEQm6tnHK0m99y/4jfAgIhAO9jCRXE6wmXZB6a1JhSfA8aGNSJZ1uty/SVON9Ce2Wu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg6XO+CRA9TVsSAnZWagAA+t0P/1EhwVXrjQ3QlBnfvLR5\nJBbwDNH6LBT/mtz0FenKSRU41NMqwKNe9uRi18OacLVuDkN0bBbeQGbsqHm6\nG7ct4zGuTWHnulG3P/dR1u02tXowwljiRVckfOCHFegEty5R84vPsnGt39r0\n+3SuqnPCsz0mEA1zDt3gAi1aYmqBdqhKDlA4nlGJiSp9dz2/S4l3EaOJI15M\nbv/RXMns2KMK6fXdEDsIJNjQ07a2NO3RS0LnFKcPF/okLO3XVhsFvlATk30v\nE62OdaAptU76u9YAsVi2iMKo8hejKgxAhyl9+3cpG5bNPS0XTtmJT/SubgBg\n6VFtveTIlcLMLo+l/y4bxwxDcx3JW+IuMX50MW0fT2dPxgHcdGW/nmPVKCNv\nK+SmUQ+EjwxyfwVuyJlp9iGZeOgeA1Bf3fZkHt3R4P1uAjO69fxBTU1ant+P\ngSvmRq1HOQMeuQ3VLBc7ILTOZXUscD2bIrSQmDMI7lfdvZyviLrEyXIo1HIQ\n1gU4+GIXoFspxWPY0jOldWhCS7GSI4K2ovyy7s55UBkbSsGsUxhbL05Ucgb8\nsiFLaiJ9guBqYbbmvImDnoiBa+lIHXtUHakj0Y8HPQAmpkwU8Dw04Lpar/9S\nrWyxuZZpoMggfHwqrsDvuaZthyiGUevfKE6I8rD061y1UIzjXqXvp6B7wjRQ\naJJ+\r\n=fshJ\r\n-----END PGP SIGNATURE-----\r\n","size":3983,"noattachment":false,"key":"/@turf/rhumb-distance/-/@turf/rhumb-distance-6.5.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":"5375941072b90d489389db22b43bfe809d5e451e","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":"rowanwins","email":"rowanwins@yahoo.com.au"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.8.0+x64 (darwin)","description":"turf rhumb-distance module","directories":{},"sideEffects":false,"_nodeVersion":"14.8.0","dependencies":{"@turf/helpers":"^6.5.0","@turf/invariant":"^6.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","tslint":"*","ts-node":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*","@turf/distance":"^6.5.0","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/rhumb-distance_6.5.0_1625912254256_0.2822783211939417","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":1625912254379,"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":1625912254379,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}