{"name":"@turf/midpoint","version":"7.0.0-alpha.0","keywords":["turf","midpoint","bisect","geojson","line"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/midpoint@7.0.0-alpha.0","maintainers":[{"name":"twelch","email":"tim.j.welch@gmail.com"},{"name":"jamesmilneruk","email":"jamesmilner22@hotmail.com"},{"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":"mdfedderly","email":"mdfedderly@mdfedderly.com"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"8d244b5adf5fd1d504cebeec501bff6c96da91dc","tarball":"http://registry-npm.ywwl.com/@turf/midpoint/download/@turf/midpoint-7.0.0-alpha.0.tgz","fileCount":7,"integrity":"sha512-IKu3/Es8aYl8kmVhFgAvnK0PIVJI/ce1qCAKSTB6htcPAR5TqpGY7ZfGePGT4POEUz+/HehGlBId6YbOum/bTg==","signatures":[{"sig":"MEUCIQDIQD5DAshC/fEP1ZqQWS4FwykGgF3GB/Qa446G/iA1KQIgGTaNN2ugpTRR4A20rMviXeq7P+dVhh3kJLYlgOBjtIg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja8OzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrCKw/8DJs+LUaLSkXml0DNtk4QAu05OBzalcxhYgQ7vfAE2l2QpetS\r\nng1C6PLDRxJHI1tB5VfTCnsv1DFp05GiB0cz87gNQcFSDcK3v9gstdPt69CD\r\ng0ukni4YqfO5SY4i0pT4IWr1vaGgMnndX/+rsegaPRwIEqGBfnuLztsVVgle\r\nodoGmOHpedroxjuuFVTVnPZDloaEpfEVSbnV8joBuAHWJMYnHHsoEQiAlFYM\r\nUsQvVwR6PbnR1nhq3M2qYgXpNBUju7/hUOmKk6BuimHRPkpvllOjBs4kYB9J\r\nB4bH6IzQJZ6CGvfL9+MguJVS6Atirgd4i1rNGPl1fWp4A+FiBlKm/usVKsC1\r\nWZnKrdKbRjqpRwa2ct2TeL/YiimmYaj0HifsdeZSxbLrBx40vTZI8563jYWO\r\nuPT5sGVKDIbpG5LfoKlrZTQ/ArSLrw78+r/o3dhIzpIJ4pvexrEpxegfBpwD\r\n+OrWYOUgM61mMVrlLr5EungribqCC78PigqNDP1mdUzJDuTQn1C9SbW/MJoe\r\nEhWHlBtwY6cTrrV6gSQiJ9DTq+zBHhmoY2VanGQq9hzSvK23o6vjMNpb6ksC\r\nutG8dZo7ec2ZPl4z6lKYcrM85DRS1fy77LGt5BZa1i4EsIxiczf/Sggaqjsj\r\nt/pcoWRqYOzCm7r9FBpTdhm7NRE2dymj780=\r\n=bVI1\r\n-----END PGP SIGNATURE-----\r\n","size":2751,"noattachment":false,"key":"/@turf/midpoint/-/@turf/midpoint-7.0.0-alpha.0.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]<[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"},"./package.json":"./package.json"},"funding":"https://opencollective.com/turf","gitHead":"0edc4c491b999e5ace770a61e1cf549f7c004189","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/4.0.0/node@v19.0.1+arm64 (darwin)","description":"turf midpoint module","directories":{},"sideEffects":false,"_nodeVersion":"19.0.1","dependencies":{"@turf/bearing":"^7.0.0-alpha.0","@turf/helpers":"^7.0.0-alpha.0","@turf/distance":"^7.0.0-alpha.0","@turf/destination":"^7.0.0-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*"},"_npmOperationalInternal":{"tmp":"tmp/midpoint_7.0.0-alpha.0_1668006835395_0.37896153535167065","host":"s3://npm-registry-packages"},"publish_time":1668006835638,"_cnpm_publish_time":1668006835638,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}