{"name":"@turf/rhumb-bearing","version":"7.0.0-alpha.0","keywords":["turf","bearing","loxodrome","rhumb","rhumb line"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/rhumb-bearing@7.0.0-alpha.0","maintainers":[{"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"}],"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":"c7275d87d4a23425ce2c11b74f864e67b7dba30d","tarball":"http://registry-npm.ywwl.com/@turf/rhumb-bearing/download/@turf/rhumb-bearing-7.0.0-alpha.0.tgz","fileCount":7,"integrity":"sha512-D8lS0T6O5M3zR2+9upsHSgAhFThsM1YlnHd9UjgR3k9ifT0qmQiMC17/lKyBQLrW2F0htOkXWQ3ULZKJTlZ2jg==","signatures":[{"sig":"MEUCIFb8bXOwKi1u4Mkp2JU3OgUqRdeHeExP2pFcFzdI2Q4NAiEAlHOtsekZxPs6NQo3PpwoXLgWLMrca0U9QrkrISzEv1Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11271,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja8OoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmobJRAAgxMJDtvlw9w3nBFu/As+AoemPKk9RLXs0i0TZ+HgQj/tOTrs\r\n5vPzaQw1PPT6gQvmWy8YFFykdRbeRvYiZ0JAF5coluW/FrSumI6Ieuko0chq\r\nY+b94q8TpAvP94pfQ6tXi4hRNhztnAKB+4iTm5HQAEK0vhJ3Pbgr29PAKgsT\r\nBUmZs4HbWtvadl8XxZ7Nn1y+pIGM3hZRhJbNUvguQDfu9QhvL0wZMvM5T94I\r\n5mnHCgbECO3JURWIaPz/FmgeiI5vClHf3sehMJlxTsDy0ZL96VRnoJpBe22u\r\ntEdqpO+4sBBiMlt/mBNouzhUv0WvPwf9EGsaidsH4uqMeK5wIdDw6JNLhoI4\r\nqA98RitX3z/GO2w1NUdZ3q/JjbxEb5BsCCqxNcabYaxPX1jB/YWxiO9w4P8z\r\nCo3kNRNLAnL9G6vkHDcfazkLph9pSWyk+cbsY36Jdr2oF/WSJjYzPJKu+J9h\r\njXFMzzOvmGwYkmAz259UKU+1sBFW2XZxmdlTjw08ko6VPFEjP3XcwpMMKSBI\r\n1zDOnRvbvy9L3YMfg8Eo8BU4eBwq7Qi+tmuwE9LKTdLasFKb5nKb2FgbFbpi\r\n1K5BpXSbFtWmf8VMUuwYk2zO1uaGpEwwSzK3nbt0KsH+/M+ZFVNbQ4Qs8vE2\r\n4lawofOVyjmZ6hwaOAPXTJ++9YhGECm/tFM=\r\n=KFqv\r\n-----END PGP SIGNATURE-----\r\n","size":3579,"noattachment":false,"key":"/@turf/rhumb-bearing/-/@turf/rhumb-bearing-7.0.0-alpha.0.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","readme":"# @turf/rhumb-bearing\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## rhumbBearing\n\nTakes two [points][1] and finds the bearing angle between them along a Rhumb line\ni.e. the angle measured in degrees start the north line (0 degrees)\n\n### Parameters\n\n*   `start` **[Coord][2]** starting Point\n*   `end` **[Coord][2]** ending Point\n*   `options` **[Object][3]?** Optional parameters\n\n    *   `options.final` **[boolean][4]** calculates the final bearing if true (optional, default `false`)\n\n### Examples\n\n```javascript\nvar point1 = turf.point([-75.343, 39.984], {\"marker-color\": \"#F00\"});\nvar point2 = turf.point([-75.534, 39.123], {\"marker-color\": \"#00F\"});\n\nvar bearing = turf.rhumbBearing(point1, point2);\n\n//addToMap\nvar addToMap = [point1, point2];\npoint1.properties.bearing = bearing;\npoint2.properties.bearing = bearing;\n```\n\nReturns **[number][5]** bearing from north in decimal degrees, between -180 and 180 degrees (positive clockwise)\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.1.2\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.1.1\n\n[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean\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:\nif you find an error, edit the source file (likely index.js), and re-run\n./scripts/generate-readmes in the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](http://turfjs.org/), an open source\nmodule collection dedicated to geographic algorithms. It is maintained in the\n[Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create\nPRs and issues.\n\n### Installation\n\nInstall this module individually:\n\n```sh\n$ npm install @turf/rhumb-bearing\n```\n\nOr install the Turf module that includes it as a function:\n\n```sh\n$ npm install @turf/turf\n```\n","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-bearing 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":"*","write-json-file":"*","@turf/destination":"^7.0.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/rhumb-bearing_7.0.0-alpha.0_1668006824068_0.6539906237673911","host":"s3://npm-registry-packages"},"publish_time":1668006824225,"_cnpm_publish_time":1668006824225,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}