{"name":"@turf/bearing","version":"6.2.0-alpha.1","keywords":["turf","bearing"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/bearing@6.2.0-alpha.1","maintainers":[{"name":"deniscarriere","email":"carriere.denis@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"tmcw","email":"tom@macwright.org"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"f0da7a783fa48b1435629d3bdbfdcda608d2223a","tarball":"http://registry-npm.ywwl.com/@turf/bearing/download/@turf/bearing-6.2.0-alpha.1.tgz","fileCount":6,"integrity":"sha512-KRTp0ZsmlSoaVzZcH5arHg1qnOp3gNMjbxTjTPwhkBHTk2gODrd93kGSBq5GhEhqFc5gMZfkI07mBzl+nbmAKQ==","signatures":[{"sig":"MEUCIB/qbe6BTPy2TGycLJetQuBFnXY8n3radCjBSA2aicVYAiEAx/NSb2q0x1HAS84hBSWU2317JGOKodfCx7IIMBKYe90=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9619,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefUJaCRA9TVsSAnZWagAAyyMP/3V3lbvzFSILTR8w9voV\nzhuS2qqaUnVtv/0YvCaWTxByfAErYGdNLhyjiE/1BQNzUDtrgqBVjX3Q/VKO\nIObBA7nL/pKTx1y5n6YpwVe0Jli2awlCcOBCZfXh41ZGDdqP3BVe1X86qHhJ\nPMU6jtwrZd/PvjPjG8FDIiRHxKU8Jwh3WqK96UOcP5U0UUApLknlj30Cgj5L\nunNJnV0cnqmAIKsEINCO0gesGJovPZd58A8GkfFdzaIw6NIC1u1iPC3u41EA\n7D4cozDrIk3vFA6Oko4grygRRGQ1TGi8mPhXFb/nLrrFsiKRAF7cgtKLaCeU\nrQFiwLdDd8LpzFpmzWknLzpfq1eEgeaFsK3fGNMQRY2xYDpQ1rHW1GNn8cvv\nCSWq5xK2fIHDH+E8o+lXJeNGUrK1TacAS6egTZtNJRkpfn1hdDyWSQk4VFj1\nk/pHF9J+7bayQgSJfvPhUomPWenqMZSgqdHAUHhAis4HeO7c8hWWdz0FKY5p\nE5sIax4jcTN7VwA2VRu+YVIHwh3+g63o+WXEC/JQ3xSgT34N4a1bOa3ZPqjs\njwCdoS4+pEgFsLipO+uFXEyOn5JKrfy1QAkjD4WGlKTfE8qhiOTOO7PfwM30\nMZ4uee7/StfRveQvJUTO+XjGVDvklwxrKYugqsOsgpVDVMjRSj4f0PZQkQeP\nlUSD\r\n=a5OB\r\n-----END PGP SIGNATURE-----\r\n","size":3080,"noattachment":false,"key":"/@turf/bearing/-/@turf/bearing-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 bearing 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":"*","write-json-file":"*","@turf/destination":"^6.2.0-alpha.1"},"_npmOperationalInternal":{"tmp":"tmp/bearing_6.2.0-alpha.1_1585267289715_0.8063525709450987","host":"s3://npm-registry-packages"},"readme":"# @turf/bearing\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## bearing\n\nTakes two [points][1] and finds the geographic bearing between them,\ni.e. the angle measured in degrees from 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 (optional, default `{}`)\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]);\nvar point2 = turf.point([-75.534, 39.123]);\n\nvar bearing = turf.bearing(point1, point2);\n\n//addToMap\nvar addToMap = [point1, point2]\npoint1.properties['marker-color'] = '#f00'\npoint2.properties['marker-color'] = '#0f0'\npoint1.properties.bearing = bearing\n```\n\nReturns **[number][5]** bearing 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. 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/bearing\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":1585267289847,"_cnpm_publish_time":1585267289847,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}