{"name":"@turf/bearing","version":"5.0.0","keywords":["turf","bearing"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/bearing@5.0.0","maintainers":[{"name":"deniscarriere","email":"carriere.denis@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"tmcw","email":"tom@macwright.org"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"448a2d1c7c6fde2b777c79886bf706256758e309","tarball":"http://registry-npm.ywwl.com/@turf/bearing/download/@turf/bearing-5.0.0.tgz","integrity":"sha512-VEb/n2hlyhx/lFW9JbHvKDM3ofruuzlqr+uQ6Lp2ke/LBJP/gkXXewqTeXvs6KFo03G5AMNXZB7aIx/Kyu1nXg==","signatures":[{"sig":"MEYCIQDW/6C7mA0sHnmJOtPNz/gLJSAnLHYXPU3hmjn3v8aP2wIhAJngmP8G2o1Zg57z36gOaIn3+akfMKDniWblNEpsL6dw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":3070,"noattachment":false,"key":"/@turf/bearing/-/@turf/bearing-5.0.0.tgz"},"main":"main","_from":".","files":["index.js","index.d.ts","main.js"],"types":"index.d.ts","module":"index","_shasum":"448a2d1c7c6fde2b777c79886bf706256758e309","scripts":{"test":"node -r @std/esm test.js","bench":"node -r @std/esm bench.js","pretest":"rollup -c ../../rollup.config.js","posttest":"uglifyjs main.js -o main.min.js"},"@std/esm":{"cjs":true,"esm":"js"},"_npmUser":{"name":"deniscarriere","email":"carriere.denis@gmail.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"3.10.10","description":"turf bearing module","directories":{},"jsnext:main":"index","_nodeVersion":"6.11.2","dependencies":{"@turf/invariant":"5.0.0"},"devDependencies":{"tape":"*","rollup":"*","@std/esm":"*","benchmark":"*","uglify-js":"*","@turf/helpers":"5.0.0","write-json-file":"*","@turf/destination":"*"},"_npmOperationalInternal":{"tmp":"tmp/bearing-5.0.0.tgz_1506900397944_0.7888884642161429","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":1506900398092,"_cnpm_publish_time":1506900398092,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}