{"name":"@turf/midpoint","version":"6.2.0-alpha.2","keywords":["turf","midpoint","bisect","geojson","line"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/midpoint@6.2.0-alpha.2","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":"b4c98ec4b12cfe4600921d6889290f3b8ee52e76","tarball":"http://registry-npm.ywwl.com/@turf/midpoint/download/@turf/midpoint-6.2.0-alpha.2.tgz","fileCount":7,"integrity":"sha512-iLqumozDhPn8B8ENz8eaK+a4AARBKvq4LLt3cWnQmDIug8xEnIAL6NUWvxr6HIyb/w09cKj7lErkej0BOssavg==","signatures":[{"sig":"MEQCIDqnHZcCE9Kz4ohnSSrX6ckPIIO5n4bapftZkH+jXeCHAiB6bMFH3T3PVE4cuaU+onLrsQW9KS4vzV8nZzULhBNnSw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7415,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDHJhCRA9TVsSAnZWagAAhj0P+QA9QFfWUAmx7JpIGFFH\nrEw4rMOmzjMnWfgFgQdpiJM3qtHrtU2jOs6+5hYedxBHoEM7UVw09BTts8dF\nmmJ2fxwKFJgHPMykTX/xiQBM0G7xgwtyH54+/OOXpbow7ug2S4P1vAJynU01\nrsq/3Y/KTcsoaxSID4iDgwt+Z3Bw7vCJTEwlUEJLCg7wbQ29FoA1rkBGKv66\n26V3rA/m0U4n21XbdBGVdLmH7fZ7TisjjMJGUbdVFBzfpkmvBIl0kOsW3wol\n0MI9jsctOHqabA5+/bxjqiR7p2G7uS4QQl4EA9tvOYmKOCb0yyd/syO/F3Ok\nByhVBo+P7ZsSqk4zKpit57KbksaYCFNbOWpPSOgthw2+WflKhZEb21ojcQHQ\ntxWSWl/LxE+vT/X4IH7rlSKLikBSEAdo6QAKsmFutCFvzhhHb/dsDUmly2ux\nSD+ljUjFxXTj9k3A4go2IVS//S/qImRRscWUnhBnD5EJKp8Y0Ig3Z8c1cZMM\nw7zWv068gLM7gZ/UCebJevyBL9J5gDjYmUz+1CzRcrR4pG2amJuKW0hQHvTE\nkCp3Ze7ZGctubGLeTFkd2V5QJaEX18NFsEg25zdAmjrohmkzuFQB3k99Xf6X\n6a4zMD1D3NdR4u9Te4XU9DJmQj02RhLX9bJOmAVDeGjTC4mNdvo8HvQ/p8Ep\n2SQs\r\n=aXyW\r\n-----END PGP SIGNATURE-----\r\n","size":2645,"noattachment":false,"key":"/@turf/midpoint/-/@turf/midpoint-6.2.0-alpha.2.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","gitHead":"23d5cb91d77e0c1e2e903a2252f525797f1d0d09","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.2","@turf/helpers":"^6.2.0-alpha.2","@turf/distance":"^6.2.0-alpha.2","@turf/destination":"^6.2.0-alpha.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*"},"_npmOperationalInternal":{"tmp":"tmp/midpoint_6.2.0-alpha.2_1594651232932_0.2999903160081161","host":"s3://npm-registry-packages"},"publish_time":1594651233055,"_cnpm_publish_time":1594651233055,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}