{"name":"@turf/line-distance","version":"4.7.3","keywords":["turf","linestring","length","distance","units","gis"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/line-distance@4.7.3","contributors":[{"name":"Denis Carriere","email":"@DenisCarriere"},{"name":"Tom MacWright","email":"@tmcw"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"00a33000e088ee5e3a8d92b7b96bb332af373006","tarball":"http://registry-npm.ywwl.com/@turf/line-distance/download/@turf/line-distance-4.7.3.tgz","integrity":"sha512-U6sFReqpMJq/LhOoDna4w1Vs2gliJUhFa1g94WrZrVz7l4IHldy7Q0Va0CyQ00qN5n3f09/vf4F+q2+ThHbL4g==","signatures":[{"sig":"MEUCIQCK4Lccol7KtBpawLKDY3/tpJ00DMJCDQvlwE5SooptgAIgHeT+nfddSz9e0GH+1jktVgWbMdt7rbdwb9TVMZcv8A4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2fJZCRA9TVsSAnZWagAAw9EP+gKa/r/QP2im9KlRJuEr\ncFjd99KOIA25XbopKCvteaxztmWX54cvfMFY82+tLsTH3jZDq88LqbhhqL2h\nmNawTcbt/d/7VsPgGC7Ac1sqA7Kbad6paYNRjk464wU/kZfHL9Ve0F6KTbs9\n0owEox7CIaTaDSAsQlhIxDCP8bTqXBQk/ovhdcOpdf3TbTrfV2LeUMF1aLV7\ngSufR8uH72Nzt9PuAAMHzn1rk4M15jv+nnLUYNtAorXIHydKpd+ChAVChF+9\n2xcFDBFah64jey955qUAKIQ3RJAbSZncjogqt1oE1sxaH5LNLbMHieedMbbS\nD9sbUUt/vT+7iRUhL6UaVnEpgywWGz+rxePxu/krhiKps7t01JsVWuenrGow\nYbUaDVxH0RuDR4yU/6Mw5we9MRf894A6YS3ojogObMviquLBIDEDbq2jhmAa\nP5vW0z4iZ7v3z5a9c5CfCr3ezO/s3SFE5E8SE04kn0Yd3qpln3GE2EuRDhYz\npEWTcFMEx4Sbr/Rkvv8jKW34bpuTOiaSls3VC+RS31awQTHf+LcQtjRHGtHx\nABt3sT2OaiIeaLmdfId2zx7UpZ8GWUvnQXyDxZeQASmUfxIiozGscy13QmjA\nnOBJB45hYkeqbOg4kJV4WFu9qCk6oyPbyNoAIFd6kwgMf9VU8job/8RKXVyB\n7r96\r\n=tFXQ\r\n-----END PGP SIGNATURE-----\r\n","size":2553,"noattachment":false,"key":"/@turf/line-distance/-/@turf/line-distance-4.7.3.tgz"},"main":"index.js","_from":".","files":["index.js","index.d.ts"],"types":"index.d.ts","_shasum":"00a33000e088ee5e3a8d92b7b96bb332af373006","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.11.2","dependencies":{"@turf/meta":"^4.7.3","@turf/helpers":"^4.7.3","@turf/distance":"^4.7.3"},"devDependencies":{"tape":"^4.6.3","benchmark":"^2.1.4","load-json-file":"^2.0.0","write-json-file":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/line-distance-4.7.3.tgz_1505222507147_0.39081479609012604","host":"s3://npm-registry-packages"},"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":1505222507271,"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":1505222507271,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"4.7.3","lerna-temp":"4.7.1"}}