{"name":"@turf/midpoint","version":"3.0.15","keywords":["turf","midpoint","bisect","geojson","line"],"author":{"name":"morganherlocker"},"license":"MIT","_id":"@turf/midpoint@3.0.15","maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"homepage":"https://github.com/Turfjs/turf-midpoint","bugs":{"url":"https://github.com/Turfjs/turf-midpoint/issues"},"dist":{"shasum":"42831eb2bf6bb10994ad8d020e1b668cf8a4e11c","tarball":"http://registry-npm.ywwl.com/@turf/midpoint/download/@turf/midpoint-3.0.15.tgz","integrity":"sha512-WUOpjBItVkY4AY7SHIH8xTDSv6a8w/8J5OUjPmOICJTgax06sTDObjpOAiXEJ4jOnHn5hr8TzHdJfes68l/lng==","signatures":[{"sig":"MEQCIBdroOxcxAgfD1jxdqSW54uht957XBltwkU8W5QY9G7uAiBDhwrCzG1uuyPGk5QSgCGDwJUhq1HWjiuNuFBbVtFt+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2593,"noattachment":false,"key":"/@turf/midpoint/-/@turf/midpoint-3.0.15.tgz"},"main":"index.js","_from":".","_shasum":"42831eb2bf6bb10994ad8d020e1b668cf8a4e11c","scripts":{"test":"node test.js"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"repository":{"url":"git+https://github.com/Turfjs/turf-midpoint.git","type":"git"},"_npmVersion":"2.15.8","description":"turf midpoint module","directories":{},"_nodeVersion":"4.4.7","dependencies":{"@turf/bearing":"^3.0.15","@turf/distance":"^3.0.15","@turf/invariant":"^3.0.15","@turf/destination":"^3.0.15"},"devDependencies":{"tape":"^3.5.0","benchmark":"^1.0.0","@turf/helpers":"^3.0.15"},"_npmOperationalInternal":{"tmp":"tmp/midpoint-3.0.15.tgz_1467820692885_0.3437925660982728","host":"packages-12-west.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":1467820695411,"_cnpm_publish_time":1467820695411,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}