{"name":"@turf/bearing","version":"6.2.0-alpha.2","keywords":["turf","bearing"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/bearing@6.2.0-alpha.2","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":"a5d3bf428be5e8fc700bfc62a79b30ea979de64b","tarball":"http://registry-npm.ywwl.com/@turf/bearing/download/@turf/bearing-6.2.0-alpha.2.tgz","fileCount":6,"integrity":"sha512-Z+PZZPJ9ykRB/KqVULWFKztjp7aWU5bo9B5nzUVdrx4TurMeSApEcLPEScQPc4CqQ0gqiOpk2XOBuZ14pGEXEA==","signatures":[{"sig":"MEYCIQDuPnMqUEkmgvlITrkgodUrjvcyVgsxZntMXw2A6kzfhAIhAOXUR/p1GLMBaNLgb/SUHjwlN4BETnOojnET1qEoJUbi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9643,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDHI/CRA9TVsSAnZWagAAKCQP/2ikXHckLRPszg3/049r\nXVTBhTlBaLdMpnTQyqtoY67aVaNkxkIYBd0l1SLdh4hEdk/tn90T2QqKM6wD\nyCisTiqFpjAE9JraELwhzDvZ+UmeujupjmMwQziLnPNVsbSe+j9F2gAFVu8b\nv4G//u/Xi9/NTcVxZ0s/wcbWUGiylvgn/hd1RPqVQlMeLZlaQKVvMJwdukZb\nYhIxQE6Y2NYqETC94hWwlVnFjxPfip6SQ9fx4KuzqVooO2JMhhKbhNiI+hwi\ncmPtGJqnL8kEp8Ro98Vl+lUbhqXd1Do6jC+z4275BhxYmWC7QmHS+rkkA6rZ\nJgedhINywekumnB3N2VpiqnI29IqZ6sOJk0fQs3nxVh9ivLwYdVgJeS5vMZW\n9ppMRC6buSlMUHgmMszPNTVlDhqf1okM5KbC1toDL/pV5BgsMXxUdr9kgzW9\nXvtr46ZOSnorjmexsoY6NWEFL6Zw6HnaHbftw/trStcNv8kmcmAJ8jxmjKnC\npQ0zR9qlWx7CTb8Nkc/cN3weswHUJDqgGrlFuISMfe1U2bZ68E8KWI91TlFv\n8HyLExzdaEX2BNqPR8qgWlnivCjLBFSfl7RdZ3eWsvrngbrmsbxvmk4hiXe+\ndcMx7SzvEfNEbUIUBduFIPgr6ltuEGVCBJ+nnFhbwSJTDHsIAUbvVRQDSqTz\niAOE\r\n=uHrQ\r\n-----END PGP SIGNATURE-----\r\n","size":3082,"noattachment":false,"key":"/@turf/bearing/-/@turf/bearing-6.2.0-alpha.2.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","gitHead":"23d5cb91d77e0c1e2e903a2252f525797f1d0d09","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.2","@turf/invariant":"^6.2.0-alpha.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","tslint":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*","write-json-file":"*","@turf/destination":"^6.2.0-alpha.2"},"_npmOperationalInternal":{"tmp":"tmp/bearing_6.2.0-alpha.2_1594651198691_0.9666076455173049","host":"s3://npm-registry-packages"},"publish_time":1594651198803,"_cnpm_publish_time":1594651198803,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}