{"name":"@turf/midpoint","version":"6.2.0-alpha.1","keywords":["turf","midpoint","bisect","geojson","line"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/midpoint@6.2.0-alpha.1","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":"38d792d4766c8bae9e5ddef6db7542802761b7bd","tarball":"http://registry-npm.ywwl.com/@turf/midpoint/download/@turf/midpoint-6.2.0-alpha.1.tgz","fileCount":7,"integrity":"sha512-Su8l9g8CVa6SGamDL3rRgnn5fGEwG0SXArllcnJS3cIBBdoRPllnjVH4wl72oM86DX+fT/HEAnc0h2SOLzfwow==","signatures":[{"sig":"MEYCIQCPvx/qNAbmY9w50ytMWaPWXqmawqiFfm83/XbPBARmMgIhAOHYnZ4vNNGxXz0/0MPYuoQEhxVRiTDkr9nBA5g1HTlQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7391,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefUJ9CRA9TVsSAnZWagAAh6YQAJKgQQxhWtdvRvwMReho\nSATIevIr7TpMNBy8gz+0ifN6xNhBS+OhJUOhs4XgN1RQNYMLUfprrHg7ThMe\nGHodVa1R0NaqfLvfv77qwArn+8q4x0+1qS2ufVzugHbcg0vaMhm7zcej/7MM\nQ8z8GBEnoD8aoDemXKEARxyK4emOZgl5Q/+GoWTUcaubsuAAanUuf7IyTcSR\nDTSNR79lFPF5qqEGbD/ArfbXgFsutuRP7zQdgSalenwD4Tq2dOfTDaQ0Sc+i\nqYGJ0+a+HtMcd8YruyI6aOBm08tT/S6DqRjHKLls9P5fH7vOPqsLB6+d1Xr1\ns+JvpdZv4KKh7vZxT4UAF2UqLtgFSuK8EHFlZtKTItIm7dui6IQF5BIrWQX0\n4RIDDN1nuaF6Q71rVOj4YkTqVRgmlnGuYFg9dQiLxCyvVR8eJyfYiRbEUZzi\nWgiBQEkb4W/zmCh9OIuwlw2hklPP5TgV905PNlfoEOwSPf9jYWwJBjQpt1ZL\n+Ky4LNPXrDIMiec/9D60HKVCieUtxPwVEXjCOM5kJMmeMpFK5kCfuTawQXDv\ns/O9DTuVvyVSGRBXzuHrHYuO5UC4MC9gwPthlqnhsyTbYLaYgg8BLxiTrZK1\nqSON7Um6mcuzpMGUj0XCURH+voMw4+2xZZN/N7Z2tqg0jRpf9J5F8KnEZZi5\ncIrO\r\n=MTFd\r\n-----END PGP SIGNATURE-----\r\n","size":2642,"noattachment":false,"key":"/@turf/midpoint/-/@turf/midpoint-6.2.0-alpha.1.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","gitHead":"fc519c045a8931c1e14eab9160a7e28391f8da02","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.1","@turf/helpers":"^6.2.0-alpha.1","@turf/distance":"^6.2.0-alpha.1","@turf/destination":"^6.2.0-alpha.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*"},"_npmOperationalInternal":{"tmp":"tmp/midpoint_6.2.0-alpha.1_1585267325205_0.6898277173643577","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":1585267325314,"_cnpm_publish_time":1585267325314,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}