{"name":"@turf/bearing","version":"6.4.0","keywords":["turf","bearing"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/bearing@6.4.0","maintainers":[{"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":"deniscarriere","email":"carriere.denis@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"9a85567cbdd2cdd17ffe6243342a656af70e74d9","tarball":"http://registry-npm.ywwl.com/@turf/bearing/download/@turf/bearing-6.4.0.tgz","fileCount":7,"integrity":"sha512-CmMsT8hSzzhZWe0+49OP48m/EAXryZjNh/7D/0nqMIlayslRZ+bHuV3KcrOCD20xoDFtBuSEdwEd6i4+2Nw3LA==","signatures":[{"sig":"MEQCIB39kIcU697DG7PJIzfYAK8cFarzkKCZlGglP4YbuhFwAiBsBzXtnU+rnxQkbeqx9v7PxHImcjA9i0ELaKai2PMJQg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgy06ACRA9TVsSAnZWagAAMBoP/0YCVp3G2yQXIMKqNQY5\nocKy1dryg+f2qi5X9ZrGdL8oj5BUpE8CH6Hy84u4W7TyZsrL0j/G/RTSq86v\ncedAPVnwGPJkKJZ2dkV5XPTvZU2UlZEd2R+2L0s/rrJ83P5/W21yPtuFPYd+\nG8TINgVDLlMmzn+JwBzT/cEkdCrddO9apzotozd//oHgUnpzzMPK0JsirusH\noYn/cJxZlXK0j45ApIvK3S3I9wO2Yaj9mXVwVNcVFL3ASO3dbkW3tHO1B0lX\nDjLHJ7VSj6fNdCVZnQM0BVZfZBTZNYj3xpXxHK3OghHQ4R3KigOo6Wfx1oaW\njqNzL41zSAEzxiSmKSeh67KrD9YJONs85C540yor6bRob25q+okG5k+vhA3m\n4JrRGCOOfsqdxuW+iRT+NQmGSmrdSmkudjinLQF6IzqmI4mMyAoY+G7ktxOK\np0v3gZY5HntIap/wO35O0Q+n5asIdInwSeDroYjrUu7Z2rXtwLN514kBOjtP\npAZuud3LLEXUQQv4RUXcexiIeGJkTQ+qM0dVIDRDKM5GUxztV+txnu5BIFOh\nZWVOa0l/t1RpS+we2k2mhPsnS4htdOo9jKOVz9WXNNhuenNC0yyJhGBR+6ur\nRoTX6D3IYy3i+gLlTSxCEqDz6FWWZj6Pd8UJB5122MUsk7zAmO6xoF8dbSnq\ngFkV\r\n=85Gw\r\n-----END PGP SIGNATURE-----\r\n","size":3185,"noattachment":false,"key":"/@turf/bearing/-/@turf/bearing-6.4.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"},"gitHead":"1e62773cfc88c627cca8effcb5c14cfb65a905ac","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/3.20.2/node@v14.14.0+x64 (darwin)","description":"turf bearing module","directories":{},"sideEffects":false,"_nodeVersion":"14.14.0","dependencies":{"@turf/helpers":"^6.4.0","@turf/invariant":"^6.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","tslint":"*","ts-node":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*","write-json-file":"*","@turf/destination":"^6.4.0"},"_npmOperationalInternal":{"tmp":"tmp/bearing_6.4.0_1623936640535_0.9443265840746145","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":1623936640650,"_cnpm_publish_time":1623936640650,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}