{"name":"@turf/bearing","version":"3.5.2","keywords":["turf","bearing"],"author":{"name":"jvrousseau"},"license":"MIT","_id":"@turf/bearing@3.5.2","maintainers":[{"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":"cefdc8bab1125f187f8735431cb6ea350f402173","tarball":"http://registry-npm.ywwl.com/@turf/bearing/download/@turf/bearing-3.5.2.tgz","integrity":"sha512-uBDPX+fNxTZFMwb+KcPIj8VXpKS1oGo56jaoBo5Iml3B2BIML+6GPpQ8tKxwH1KeMTByQH3kJQSN1uwPkhiqUQ==","signatures":[{"sig":"MEQCID7L1Jt/ZXeI7JOpKVgOx3tnEpggWgorxK5NBtqp6n6WAiA0EfiRp1h8Y0LxVtUNHgkKQX7IlCXWp+giNa289AEE1w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2705,"noattachment":false,"key":"/@turf/bearing/-/@turf/bearing-3.5.2.tgz"},"main":"index.js","_from":".","_shasum":"cefdc8bab1125f187f8735431cb6ea350f402173","scripts":{"test":"tape test.js"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"2.15.9","description":"turf bearing module","directories":{},"_nodeVersion":"4.5.0","dependencies":{"@turf/invariant":"^3.5.2"},"devDependencies":{"tape":"^3.5.0","benchmark":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bearing-3.5.2.tgz_1471904435548_0.07619662838988006","host":"packages-16-east.internal.npmjs.com"},"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":1471904437488,"_cnpm_publish_time":1471904437488,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}