{"name":"@turf/line-distance","version":"3.13.0","keywords":["turf","linestring","length","distance","units","gis"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/line-distance@3.13.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"3b6f965d6f3a1844fa28d7a9eb0b053406415fc8","tarball":"http://registry-npm.ywwl.com/@turf/line-distance/download/@turf/line-distance-3.13.0.tgz","integrity":"sha512-6bS64PrLwgTs5cQZOrTDdzsclfQWsZHLUA/2lufyc3ujBBWP0rkq/yheYIkkCit7FJb4KdN8Tkk/E78DxN+oWg==","signatures":[{"sig":"MEYCIQCIeH9ncikQpzoKQuaDF2GEwT6mc7hncxH2DCTN8fyRMwIhANhZe5z31aG0HbsjM73SfoFxB+F2qRVQJfHP+SivNRj/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2930,"noattachment":false,"key":"/@turf/line-distance/-/@turf/line-distance-3.13.0.tgz"},"main":"index.js","_from":".","files":["index.js","index.d.ts"],"types":"index.d.ts","_shasum":"3b6f965d6f3a1844fa28d7a9eb0b053406415fc8","scripts":{"test":"node test.js","bench":"node bench.js"},"_npmUser":{"name":"deniscarriere","email":"carriere.denis@gmail.com"},"deprecated":"Module deprecated in favor of @turf/length","repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"3.10.10","description":"turf line-distance module","directories":{},"_nodeVersion":"6.9.5","dependencies":{"@turf/helpers":"^3.13.0","@turf/distance":"^3.13.0"},"devDependencies":{"tape":"^3.5.0","benchmark":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/line-distance-3.13.0.tgz_1489294897801_0.691990670049563","host":"packages-18-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":1489294899641,"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":1489294899641,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"4.7.3","lerna-temp":"4.7.1"}}