{"name":"@turf/midpoint","version":"6.3.0","keywords":["turf","midpoint","bisect","geojson","line"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/midpoint@6.3.0","maintainers":[{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tmcw","email":"tom@macwright.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"deniscarriere","email":"carriere.denis@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"42ba47f601f63ee60d97a542c5a615d1cbbe4ff8","tarball":"http://registry-npm.ywwl.com/@turf/midpoint/download/@turf/midpoint-6.3.0.tgz","fileCount":7,"integrity":"sha512-ImiYK5l/QZh5aCynxCyHoaJYn4j1VhorVyw2XihHuwAtebTc+KRaBJpWSD2eJxo3Q3J+QepWMiiMvQFJgQ5uCQ==","signatures":[{"sig":"MEUCIBzycxxW/KGWHeZegWf53a/hrsDrIMhZtVXHKeQy8QGrAiEAiz21jRQBxGK20mF+vQVkePCAi2akpAMDnD6ZgO794yY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6432,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCECrCRA9TVsSAnZWagAA5BAP/iIiy2l63MDYAc35NPco\n7c2rjErTovm7VuqhdLQxcgnrS70nH8wTZKA2+Vu3lu3Jwtd7G8eJDlrQKrsA\ntUWSlslhZgJ1av+MFui8YH3K2sBb9WJbUWYtI589xemdYyAqAuu17JQTDffA\nB+KGZcE4e1YljF8/0ra7irUiO2OjWv1PwAt/Q3en1Gvx+bHEEfgYkCILxWHX\n2DsEWQqqVex59uShmJfIMd4JOVyyu6C3TgQwigwqftqM3xi9FJN39aWisZgm\nDvDqbFuglYFfGkCu/cx0YLvuV9kyLulkTVeuTDufIlfAWRyHLYMHXoRsS7lf\n8/1+6co6enmCXCTWU/MB9BByMQbGgp2f1FBUd9IOG8M7b9B/wbOoTsbJVy3k\ndrgUF395QRcvaNyBImw1HdfWDMmxr9K5E8Me7v9Fzv4Y4WSX2w+0FbxGD96L\nSfjs/uYpOq66caf7lcqJ6TbPtyJJd2aaKKWugC1PXm5nOmbvwIfq//hi8a1/\nVEm2/CSk0KdX9UpP1PT2kPH5HyUV9Bm9iQkrruqimHOE/z3E3wSN+D0VfMKd\nOMSi+ZYAEeCs4/KqeTWg30ogZays3zNpea2VbWo/Eg79qhGtUhsnPec9DJEC\nXFCpFcsHEY/H+IUwFWU6aIHlJx/m1PCJpFjLFdbNUERaUldS92szlEj4gcC7\nbGQB\r\n=NK0j\r\n-----END PGP SIGNATURE-----\r\n","size":2658,"noattachment":false,"key":"/@turf/midpoint/-/@turf/midpoint-6.3.0.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","exports":{".":{"import":"./dist/es/index.js","require":"./dist/js/index.js"},"./package.json":"./package.json"},"gitHead":"57c8877e1e2d67effc2cdd23385c02b2a6615a49","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","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.3.0","@turf/helpers":"^6.3.0","@turf/distance":"^6.3.0","@turf/destination":"^6.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*"},"_npmOperationalInternal":{"tmp":"tmp/midpoint_6.3.0_1611153572093_0.8541082724227045","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":1611153578801,"_cnpm_publish_time":1611153578801,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}