{"name":"@turf/midpoint","version":"6.2.0-alpha.0","keywords":["turf","midpoint","bisect","geojson","line"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/midpoint@6.2.0-alpha.0","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":"646aba249e2eaa9295621066cfad932b6b4bbb01","tarball":"http://registry-npm.ywwl.com/@turf/midpoint/download/@turf/midpoint-6.2.0-alpha.0.tgz","fileCount":7,"integrity":"sha512-eIv07OHwwcbixwnoMlY1m8YRtJ1P9m8Fj+S2lJT/uPnxGLPLJ50NA/I1Ce/+i+20BzvOExSwHOohJ+VSjwe7eQ==","signatures":[{"sig":"MEUCIHLr5QH+x3GNpCG+wnXl68nB/NcW2+uOuo8lgnhAmjpvAiEAssuqGDmc4agzWWJbKXg8VPOo4IeN1gDvlBjJBKHOMik=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7342,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefS4/CRA9TVsSAnZWagAApugP/1voNWeFLBCMsnWdr8mB\n2sCcAtIl+Wi+co4uTmBLqMgmwx3qyMlbP+308DzkzwkZxEKIZLzwO5NpAMeO\nLWDSBPCm5RcWatyQIuhYg6ZWvvplcxHLUHCpxCsBXr1ruYWA2fsQgheq6vIT\nJvoBAg9UmLB6AiBdj2XLZDv5VsggL+cdLYPlPn5lSLFYqTyuqSaEKg27cNua\nc2w9PGsrNinjrzw7p78hGbbS68dQi4AXe7Qwn+tK5buLc0pgsqesZRPzKpyl\nEEkzqNf11Jbkqz9GBOUhSFZvXWNKhLMfQF6VlZl70bsv4cQJVbgZhVcsIjRJ\nKsjabu7c2qbx0Q88aQkip+WObmaibR48ovuu0U2X6Msj6HKzq6LLSUwsU5E5\ni7m5b0kw4vdLcFD1+o4z0K0KUlsjcOGumNHyvDrzmbMOu1HOEEPWfoFDBzaW\nhKAe9KcvNQFPHQkNHQ83C3B4vr/YG3SNDBtZRkTqRra8HJEcA02UHWBOqYGP\nQI7rtQGEVCuTyI8egCXgQtsoQIe322eTPhkznjz5IaqI/nS3wEEAvG5hzFsx\nx55xGKjIEOaLsJrWuIImFLMLrIwEts3N9C9DhOY4xI6miQbsWfgPCOaoxEP9\nr+oXN937Gd09miFixt+Jm2vfMfPHKMKIFQxTLlmeVXRuvJSv3tTsiR2JAJJe\n3uOl\r\n=K1/O\r\n-----END PGP SIGNATURE-----\r\n","size":2619,"noattachment":false,"key":"/@turf/midpoint/-/@turf/midpoint-6.2.0-alpha.0.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","gitHead":"23b651deaa1ca6a0960d0142aea620b7cc6a076d","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all prepare test:*","bench":"npm-run-all prepare bench:run","prepare":"rollup -c ../../rollup.config.js","posttest":"node -r esm ../../scripts/validate-es5-dependencies.js","bench:run":"node bench.js","test:tape":"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 midpoint module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/bearing":"^6.2.0-alpha.0","@turf/helpers":"^6.2.0-alpha.0","@turf/distance":"^6.2.0-alpha.0","@turf/destination":"^6.2.0-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*"},"_npmOperationalInternal":{"tmp":"tmp/midpoint_6.2.0-alpha.0_1585262143353_0.02516357471472519","host":"s3://npm-registry-packages"},"readme":"# @turf/midpoint\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## midpoint\n\nTakes two [points][1] and returns a point midway between them.\nThe midpoint is calculated geodesically, meaning the curvature of the earth is taken into account.\n\n### Parameters\n\n*   `point1` **[Coord][2]** first point\n*   `point2` **[Coord][2]** second point\n\n### Examples\n\n```javascript\nvar point1 = turf.point([144.834823, -37.771257]);\nvar point2 = turf.point([145.14244, -37.830937]);\n\nvar midpoint = turf.midpoint(point1, point2);\n\n//addToMap\nvar addToMap = [point1, point2, midpoint];\nmidpoint.properties['marker-color'] = '#f00';\n```\n\nReturns **[Feature][3]<[Point][4]>** a point midway between `pt1` and `pt2`\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://tools.ietf.org/html/rfc7946#section-3.2\n\n[4]: https://tools.ietf.org/html/rfc7946#section-3.1.2\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/midpoint\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":1585262143526,"_cnpm_publish_time":1585262143526,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}