{"name":"@turf/line-distance","version":"3.7.3","keywords":["turf","linestring","length","distance","units","gis"],"author":{"name":"morganherlocker"},"license":"MIT","_id":"@turf/line-distance@3.7.3","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"75048c65092f628085937f01481340eeec75f3f8","tarball":"http://registry-npm.ywwl.com/@turf/line-distance/download/@turf/line-distance-3.7.3.tgz","integrity":"sha512-TrmRgOdY1rlWl1h1kBGfZCOw0DGl+6xEu5VOs2iJfnyFtJ0+R5r7+RR+KomR4VGFSjy3CZQg3+EEOmyagmRe5Q==","signatures":[{"sig":"MEUCIQCwvRd7jKBx9JFeuSxafrQPmiR3vBU5Jk0bwbfGC1hddwIgLawmwAPKp7/t/uaV/tji/GgF+5BPpN/nSKZDbjGrs/k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":3727,"noattachment":false,"key":"/@turf/line-distance/-/@turf/line-distance-3.7.3.tgz"},"main":"index.js","_from":".","types":"index.d.ts","_shasum":"75048c65092f628085937f01481340eeec75f3f8","scripts":{"test":"node test.js"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"deprecated":"Module deprecated in favor of @turf/length","repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"2.15.11","description":"turf-line-distance ---","directories":{},"_nodeVersion":"4.7.2","dependencies":{"@turf/helpers":"^3.7.3","@turf/distance":"^3.7.3"},"devDependencies":{"tape":"^3.5.0","benchmark":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/line-distance-3.7.3.tgz_1483981198480_0.0076256804168224335","host":"packages-12-west.internal.npmjs.com"},"readme":"# @turf/line-distance\n\n# lineDistance\n\nTakes a [GeoJSON](http://geojson.org/geojson-spec.html#geojson-objects) and measures its length in the specified units, [Point]((Multi)Point)'s distance are ignored.\n\n**Parameters**\n\n-   `geojson` **([FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects) \\| [Feature](http://geojson.org/geojson-spec.html#feature-objects) \\| [Geometry](http://geojson.org/geojson-spec.html#geometry))** GeoJSON to measure\n-   `units` **\\[[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)]** can be degrees, radians, miles, or kilometers (optional, default `kilometers`)\n\n**Examples**\n\n```javascript\nvar line = turf.lineString([[115, -32], [131, -22], [143, -25], [150, -34]]);\nvar length = turf.lineDistance(line, 'miles');\n\n//addToMap\nvar addToMap = [line];\nline.properties.distance = length;\n```\n\nReturns **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** length of GeoJSON\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/line-distance\n```\n\nOr install the Turf module that includes it as a function:\n\n```sh\n$ npm install @turf/turf\n```\n","publish_time":1483981200408,"maintainers":[{"email":"james@smallsaucepan.com","name":"smallsaucepan"},{"email":"morganherlocker@gmail.com","name":"morgan.herlocker"},{"email":"tim.j.welch@gmail.com","name":"twelch"},{"email":"jamesmilner22@hotmail.com","name":"jamesmilneruk"},{"email":"rowanwins@yahoo.com.au","name":"rowanwins"},{"email":"tom@macwright.com","name":"tmcw"},{"email":"morgan.herlocker@gmail.com","name":"morganherlocker"},{"email":"tim.channell@gmail.com","name":"tcql"},{"email":"mdfedderly@mdfedderly.com","name":"mdfedderly"}],"_cnpm_publish_time":1483981200408,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"4.7.3","lerna-temp":"4.7.1"}}