{"name":"@turf/bearing","version":"6.2.0-alpha.3","keywords":["turf","bearing"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/bearing@6.2.0-alpha.3","maintainers":[{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tmcw","email":"tom@macwright.org"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"deniscarriere","email":"carriere.denis@gmail.com"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"01f1a8f8ea29aa2056dde5e168f63585d9e46f5b","tarball":"http://registry-npm.ywwl.com/@turf/bearing/download/@turf/bearing-6.2.0-alpha.3.tgz","fileCount":7,"integrity":"sha512-seO6YhxPxLZb60QWMcM2yh+Bl6EHzp+kQVkAlSM0o4lpvzeLHCs2tz7tYhkjuHBn/byWJhx/Ua/73+/9reNUaw==","signatures":[{"sig":"MEUCIQCZ7NFEmeuMcR9Eldj/yaBFjlGRpg4pTtzhA1/M1ATqegIgCP41RBYxY0aZJmfhIdb7+Ts4CI6ZvEl5PEelPlINPYg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9768,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0o1XCRA9TVsSAnZWagAAxxMP/AlWnkcx7tvTKRcf2wnt\nSiSK4BP22mp0kC6uYJWQFErogKm361bTPk3FWzBEdDWKrilKoQe+tXbm1DFD\nJBfJYfMj2n3jamaXWFbUjcG7kwUjQSasjlJQlloxMnX+Ave+7IWJzLK34D2+\nEfP9cNNJFYCszaQZDWzVrLWublFm9kOEH3QcjakTlfp+oaTzqj5Q4dsk3++v\ns4FOn2/v5Mv0NMkBgtBwyjRe4D8r5qkIjuc/2qgFN4C5C9GN3sP87Amv6F+1\nFlYkaodoowkMNo/gOmodRfGtY7McxPFOLv7sM8R6QEbfHuf8dHge754pPrmY\nRY+5zDTLHAB8MNBYZzre5jaKt25btbLMjfRzg1djf2PAMa22MAXQAB9R9mUt\ngwwv3yYp9N0oJj05WLooeVtBTyrkTcdMvE0jqeHv6phTcZpRpeykXfkO617T\n3zUOWQ5towSoWnZHqRh7dIdvpH9W/Sn4KMPjhupYada2E6bac//6DNhI53PR\nPE13VNDMfeGQH3o2AlFtVogULvzYlJFChYN7qUMnMVbJ1jnuCGrQgIoLQNdQ\n3HnjVMeANPKG477AVO85ewnOkzixMLefmqihszh5QmmsfzVZUY6DwkrWTAwX\nIGDXcgzuEj9duXHBzOIRqNT58NtEsX1NDtnkAciEamhpePDfTA/ogiTzCyIv\ncfDk\r\n=/6DV\r\n-----END PGP SIGNATURE-----\r\n","size":3177,"noattachment":false,"key":"/@turf/bearing/-/@turf/bearing-6.2.0-alpha.3.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","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    -   `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:\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/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"},"gitHead":"dce9edfc705352e8cb9e0083c9330ba0e8d77409","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/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.3","@turf/invariant":"^6.2.0-alpha.3"},"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":"^6.2.0-alpha.3"},"_npmOperationalInternal":{"tmp":"tmp/bearing_6.2.0-alpha.3_1607634262987_0.20380503903849778","host":"s3://npm-registry-packages"},"publish_time":1607634263106,"_cnpm_publish_time":1607634263106,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}