{"name":"@turf/rhumb-distance","version":"6.2.0-alpha.0","keywords":["turf","distance","rhumb line","rhumb","loxodrome","miles","km"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/rhumb-distance@6.2.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":"de393e17b9eee43fff63940c7894d49247fee93f","tarball":"http://registry-npm.ywwl.com/@turf/rhumb-distance/download/@turf/rhumb-distance-6.2.0-alpha.0.tgz","fileCount":6,"integrity":"sha512-UlULKchsgcthOKGRLdfD5yaCotc1g7mTUsHR1PuCOBiXsKwaw8imy6GiCLPhqOSl4CELahEvUrw3SqIGLwTtfA==","signatures":[{"sig":"MEQCICKdW1K4/5f9R6G1tC73nv4rqmrrQDYmIj0cVTwyAufhAiArZNCByfrELzds1e1Clb0zjRTzqoMnf4pLx2qTTwQvrA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefS4oCRA9TVsSAnZWagAAB2IP/23tiLGdFUjWguP8w9wn\nWfrtRjF5Q0cCyWDQQ0wNvK7FN5i4HzcromOCw09U9A0Qjd1KD9WUOVnqhrtP\nJOnF6VjWpnp+5o4hwwuxFaK3UiAvOQU8T/jy0yrqVCaxpYL+D61JMzjwdPB+\nv02ynNfIUXUTbvdIdAI34QoTLadDszvsFqdbweXWvAORmzIjlEey6vC91f0B\nlfb39i+fEOA9/5+JzyeW8nOzeJFDlaB/aNqka/kquwc7yLYV+iioEDY/8utA\n6/m/HEF0mH6ddejEJPMyvpMK+d4Z+w7VeF/zy6QeQED8iv1IEDf0/yfObueE\nQ63wOirWYzig8v8qvB2K6AHGJbAG0+1DpaXartBIZoXexrmIRw7jJLribQLe\nPb+PYp8/QqgNG/YODSmqkFjyYWmXiVtoTZWJgTLVfR8056BGPDfWXIg/CQSA\nA6URVBiWa2a3Wg5hP2ndvg4EaObNcM9XM4vDxt/gxMu7re2qXOSAy66lf/cK\nFI1t8InLWngizrrtkeC758ppLLLwea/kSydJLVXWgliTlHOu3rC68cPzW44Y\nx9qHPLg29hV3BXGIKRImkaXWy6PqR3B9alJGW5Aq5KIJG3JdrFq6clZaPZHP\n2Mi0sVGMUZoUreP3q5JDBhjb2AKIAe+o8zVgxe3Lt+tYyXfyYwpLl/L/RG94\n01UU\r\n=z5Av\r\n-----END PGP SIGNATURE-----\r\n","size":3806,"noattachment":false,"key":"/@turf/rhumb-distance/-/@turf/rhumb-distance-6.2.0-alpha.0.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","gitHead":"23b651deaa1ca6a0960d0142aea620b7cc6a076d","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.0","@turf/invariant":"^6.2.0-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","tslint":"*","benchmark":"*","typescript":"*","@types/tape":"*","@turf/distance":"^6.2.0-alpha.0","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/rhumb-distance_6.2.0-alpha.0_1585262119799_0.9960357827533539","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":1585262119919,"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":1585262119919,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}