{"name":"@turf/line-distance","version":"3.5.2","keywords":["turf","linestring","length","distance","units","gis"],"author":{"name":"morganherlocker"},"license":"MIT","_id":"@turf/line-distance@3.5.2","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"9ef298e8fec4c675d59918f1b3a13ebf4ba94801","tarball":"http://registry-npm.ywwl.com/@turf/line-distance/download/@turf/line-distance-3.5.2.tgz","integrity":"sha512-cac7yN+yjbzImZeV9/qfb9JREKX2NQ0LK4kGMASPciKfZPnp50xM9+fKhko6m88u+uQmFZg9tyZa9PlsyY+n2Q==","signatures":[{"sig":"MEQCIBRpeO9kKhoKqzLRMSeicHiuGDvN1Kq6TeL5TMmMTV10AiAvx7+9vInlWZDjxNFEmTWCOdjB2wQwHhXsbCmtjSNO2A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":4028,"noattachment":false,"key":"/@turf/line-distance/-/@turf/line-distance-3.5.2.tgz"},"main":"index.js","_from":".","_shasum":"9ef298e8fec4c675d59918f1b3a13ebf4ba94801","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.9","description":"turf-line-distance ---","directories":{},"_nodeVersion":"4.5.0","dependencies":{"@turf/helpers":"^3.5.2","@turf/distance":"^3.5.2"},"devDependencies":{"tape":"^3.5.0","benchmark":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/line-distance-3.5.2.tgz_1471904468515_0.5596116462256759","host":"packages-16-east.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":1471904470500,"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":1471904470500,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"4.7.3","lerna-temp":"4.7.1"}}