{"name":"@turf/rhumb-bearing","version":"5.0.4","keywords":["turf","bearing","loxodrome","rhumb","rhumb line"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/rhumb-bearing@5.0.4","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"}],"contributors":[{"name":"Chris Veness","email":"@chrisveness"},{"name":"Stefano Borghi","email":"@stebogit"},{"name":"Denis Carriere","email":"@DenisCarriere"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"3c7a0a1d0288775b2b9785de0107aa96d2e3ac98","tarball":"http://registry-npm.ywwl.com/@turf/rhumb-bearing/download/@turf/rhumb-bearing-5.0.4.tgz","integrity":"sha512-M9s7lLoBGaN0VCx+AdCT96hv1hWBXXqQvVv80FrXN6YCu5Ju31eZPPT61yNPU2b2FUAVPoWAWAoIwRFRkwUf8w==","signatures":[{"sig":"MEYCIQDG61Sf2h57WJ6kGkHmQ80dfPl+jbdHSI6++CJbb36/3AIhAJArq6U3Yc7plZ8L4qHdDmW2nTva/mKkP0hpS1fXeaRO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":3391,"noattachment":false,"key":"/@turf/rhumb-bearing/-/@turf/rhumb-bearing-5.0.4.tgz"},"main":"main","_from":".","files":["index.js","index.d.ts","main.js"],"types":"index.d.ts","module":"index","_shasum":"3c7a0a1d0288775b2b9785de0107aa96d2e3ac98","scripts":{"test":"node -r @std/esm test.js","bench":"node -r @std/esm bench.js","pretest":"rollup -c ../../rollup.config.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 rhumb-bearing module","directories":{},"jsnext:main":"index","_nodeVersion":"6.11.2","dependencies":{"@turf/helpers":"^5.0.4","@turf/invariant":"^5.0.4"},"devDependencies":{"tape":"*","rollup":"*","@std/esm":"*","benchmark":"*","write-json-file":"*","@turf/destination":"^5.0.4"},"_npmOperationalInternal":{"tmp":"tmp/rhumb-bearing-5.0.4.tgz_1510249716538_0.669721896527335","host":"s3://npm-registry-packages"},"readme":"# @turf/rhumb-bearing\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## rhumbBearing\n\nTakes two [points][1] and finds the bearing angle between them along a Rhumb line\ni.e. the angle measured in degrees start 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\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], {\"marker-color\": \"#F00\"});\nvar point2 = turf.point([-75.534, 39.123], {\"marker-color\": \"#00F\"});\n\nvar bearing = turf.rhumbBearing(point1, point2);\n\n//addToMap\nvar addToMap = [point1, point2];\npoint1.properties.bearing = bearing;\npoint2.properties.bearing = bearing;\n```\n\nReturns **[number][5]** bearing from north 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/rhumb-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":1510249716812,"_cnpm_publish_time":1510249716812,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}