{"name":"@turf/midpoint","version":"3.13.0","keywords":["turf","midpoint","bisect","geojson","line"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/midpoint@3.13.0","maintainers":[{"name":"deniscarriere","email":"carriere.denis@gmail.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"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":"24764bd6ddde616d0cb4609ee0bb891c18a099b9","tarball":"http://registry-npm.ywwl.com/@turf/midpoint/download/@turf/midpoint-3.13.0.tgz","integrity":"sha512-P8RMqJlZdqSHkNmpQfSTtQRG9n123glR21qm5CW4Nnh43pVIOl8bwQqh12PZWLnT7knZzG1bg0M/KWaQKDjhHw==","signatures":[{"sig":"MEQCIF3weFOTcDlt6XHfEIdLaTMVJKE1NpOtwh4PtS++r32bAiBb4dXP3BUzXE4YQ4n2qJJiC2PMqp3RJZ5Ts1xFMu+oeQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2368,"noattachment":false,"key":"/@turf/midpoint/-/@turf/midpoint-3.13.0.tgz"},"main":"index.js","_from":".","files":["index.js","index.d.ts"],"types":"index.d.ts","_shasum":"24764bd6ddde616d0cb4609ee0bb891c18a099b9","scripts":{"test":"node test.js","bench":"node bench.js"},"_npmUser":{"name":"deniscarriere","email":"carriere.denis@gmail.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"3.10.10","description":"turf midpoint module","directories":{},"_nodeVersion":"6.9.5","dependencies":{"@turf/bearing":"^3.13.0","@turf/distance":"^3.13.0","@turf/invariant":"^3.13.0","@turf/destination":"^3.13.0"},"devDependencies":{"tape":"^3.5.0","benchmark":"^1.0.0","@turf/helpers":"^3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/midpoint-3.13.0.tgz_1489294902553_0.3975633857771754","host":"packages-18-east.internal.npmjs.com"},"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":1489294904556,"_cnpm_publish_time":1489294904556,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}