{"name":"@turf/midpoint","version":"6.2.0-alpha.3","keywords":["turf","midpoint","bisect","geojson","line"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/midpoint@6.2.0-alpha.3","maintainers":[{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tmcw","email":"tom@macwright.org"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"deniscarriere","email":"carriere.denis@gmail.com"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"35f2d9c5a98d479c20cbe393d9e78e3d54050e75","tarball":"http://registry-npm.ywwl.com/@turf/midpoint/download/@turf/midpoint-6.2.0-alpha.3.tgz","fileCount":8,"integrity":"sha512-uCEiNuok5hE0uNSNvadTKIuWdnT1pmyFUrmQS6/7fdLHBwWbVhVSSIrZqR8bLjw23IgKeGXxa3AHpDfeOFvFlA==","signatures":[{"sig":"MEYCIQDrs4ZFKdlImouNawD3yfWpzUo01+xNdfmNtO8bdiFYRQIhANlG6l24b8cV60LYc+ia4u4z5MYr11SLDfyezo/MtzAB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7468,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0o2ACRA9TVsSAnZWagAAIiIQAJ5/oWMVHX0SgENA4Xo4\nMfXFUKl22lVFJnPeXmj5FWBQuD8lMmz43Bs7kbPwS6st43Aeknckx6T3zRIE\ntl0bAo5J+/+tkWn6V5VE/rqAEXB5NfwlEU79ZotOgYJ0fGYqNeEtNVMunOb/\n9fEt55T8s1Htoebrrw6f9GspjsAmwl9DYX8swp6RHZ2vJF59RaR7qdsdm6qs\nuVJSYlt7qOGfgvUXaE0hAyAFHKTkTMatY4HU8yu8mDDsI/2K86QiawRrEOQj\ngV+eCJ4zLG3wZ7Kw7lziHVGwFs0w4DNC+VnTRsjaVRAd/3msXTKUhDgYTds2\nkAws7P2LqRKUu7n69eKncXLd7qad7hEShL76cqvEZ4gha8rhKPOZ1gI24+Jf\nHqNDgv0LWAciE6GfngtG+5RV79wFDgw9VM5bgmaqFZQFCNdSUj38ZpmTIytv\nm8RKw8jN7gR9dWgU7vX3d0a2TP0+lBY3Z+e3uM94ppyLZoHW7aC18SfAHNL5\n835/m/UnI4346rSlmhm2Tf9LytnOckO9btNI1vcZkbuMkbJa8CTHm+DLN9yF\noegyYARmf4m9Of+u8eU96S4BL0/BhExLDB1ydulLfwlLs00ZsQFdp9UhpXUt\nG8DV0hhKFM1qqkYfEKrzgav7H9OG6Y0uZX0qbAzGbvirsGyaN8HooGeAjAY9\n41ps\r\n=0GKw\r\n-----END PGP SIGNATURE-----\r\n","size":2720,"noattachment":false,"key":"/@turf/midpoint/-/@turf/midpoint-6.2.0-alpha.3.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","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]&lt;[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:\nif you find an error, edit the source file (likely index.js), and re-run\n./scripts/generate-readmes in the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](http://turfjs.org/), an open source\nmodule collection dedicated to geographic algorithms. It is maintained in the\n[Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create\nPRs and issues.\n\n### Installation\n\nInstall this module individually:\n\n```sh\n$ npm install @turf/midpoint\n```\n\nOr install the Turf module that includes it as a function:\n\n```sh\n$ npm install @turf/turf\n```\n","exports":{"import":"./dist/es/index.js","require":"./dist/js/index.js"},"gitHead":"dce9edfc705352e8cb9e0083c9330ba0e8d77409","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all test:*","bench":"node -r esm bench.js","build":"rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json","posttest":"node -r esm ../../scripts/validate-es5-dependencies.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.3","@turf/helpers":"^6.2.0-alpha.3","@turf/distance":"^6.2.0-alpha.3","@turf/destination":"^6.2.0-alpha.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*"},"_npmOperationalInternal":{"tmp":"tmp/midpoint_6.2.0-alpha.3_1607634303629_0.10506734154456021","host":"s3://npm-registry-packages"},"publish_time":1607634303821,"_cnpm_publish_time":1607634303821,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}