{"name":"@turf/length","version":"6.2.0-alpha.2","keywords":["turf","linestring","length","distance","units","gis"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/length@6.2.0-alpha.2","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":"7a206363ce04db4321e7b7b35ef621582c4f0e7e","tarball":"http://registry-npm.ywwl.com/@turf/length/download/@turf/length-6.2.0-alpha.2.tgz","fileCount":6,"integrity":"sha512-bvoQ/XkFUHzPHhVpyPdcK6FLbYBuMOzsGC/E9RD1DwE3gFUeWGcjGIrBYdDrmetSfVAbCYNJV4g1JLSAGf91zw==","signatures":[{"sig":"MEQCIEynmYMKEHQMpuj1BnNIIICeFRU3Y0XWnkdy9FcXwg8DAiAe4F5/AR4t97tc6SmAXga3J/G/kGpRHM2zf/Y67ORRuA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7861,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDHJfCRA9TVsSAnZWagAAOZsQAIkOuFGvY6xnsnn7RT/k\nlvBU7g3MjS4jZAuACKehowoHaC2GPMcJL4QYZfttxXUN0FxCiMmSugSzrGks\n1zeL+wdrww4PCb8YJ1ApqVIYMJntdyfkb7ivmQ57lWaHUdBDPzjFzzj+MOKI\nl7ELy6LB2zO2yAk/VPo6YVJmDOMPsPxLBgAof+v0k2IQ6fdBQ/b1HfZ1STqj\noG020KKEyIYBifwK9+MnN5YS5W2CNQJAH7/7/1zFbIv5e8KQMlM3rmUqZz/y\nEp88aMhuc6chhBBcIKU/erdRkjni8W36YJXzOR5FwJfI8RC473uYIKosrNUC\nSmTLQNhQVlrlCJFM8/wG1lMEyzUE8qSp1kvTpGSAkp0QB9RQNeXpC2xrUQX2\n5RCstIWz4J/mIjHuhSIDyKFED0+SMXhxTlZwoVN98paISkLhtcP5MDSWX82u\nzmFiiL8hGz9MRxyEcXB4HZ1EeQHKt532Q5M4E3HQdbIvlqJ8lLcWMaCq9PZY\nUYBzbTh9LY139dwdJCIHP4tv/4Rg/cn/bnpVVebtTkN0IFm02nLVmQGKVZ8b\nzPFNS67oLo5xtLtcOdBKtQIEFZ+gomJnfdzslOMIo08BIV3oSh8NZ1i4rEnD\nSDDYhJVIXUJsP3opMjK22kYbL1fINhdcf3+LpzbRdMJxY4NFpbvYBDJsNAzp\nhvJ2\r\n=e89L\r\n-----END PGP SIGNATURE-----\r\n","size":2971,"noattachment":false,"key":"/@turf/length/-/@turf/length-6.2.0-alpha.2.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","gitHead":"23d5cb91d77e0c1e2e903a2252f525797f1d0d09","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all prepare test:*","bench":"npm-run-all prepare bench:run","prepare":"npm-run-all prepare:*","bench:run":"node bench.js","test:tape":"node -r esm test.js","prepare:es":"tsc --outDir dist/es --module esnext --declaration false","prepare:js":"tsc"},"_npmUser":{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/3.20.2/node@v13.10.1+x64 (darwin)","description":"turf length module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/meta":"^6.2.0-alpha.2","@turf/helpers":"^6.2.0-alpha.2","@turf/distance":"^6.2.0-alpha.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","tslint":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/length_6.2.0-alpha.2_1594651231359_0.22436517465797712","host":"s3://npm-registry-packages"},"readme":"# @turf/length\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## length\n\nTakes a [GeoJSON][1] and measures its length in the specified units, [(Multi)Point][2]'s distance are ignored.\n\n### Parameters\n\n*   `geojson` **[Feature][3]<([LineString][4] | [MultiLineString][5])>** GeoJSON to measure\n*   `options` **[Object][6]** Optional parameters (optional, default `{}`)\n\n    *   `options.units` **Units** Supports all valid Turf [Units][7]. (optional, default `kilometers`)\n\n### Examples\n\n```javascript\nvar line = turf.lineString([[115, -32], [131, -22], [143, -25], [150, -34]]);\nvar length = turf.length(line, {units: 'miles'});\n\n//addToMap\nvar addToMap = [line];\nline.properties.distance = length;\n```\n\nReturns **[number][8]** length of GeoJSON\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.1.2\n\n[3]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[4]: https://tools.ietf.org/html/rfc7946#section-3.1.4\n\n[5]: https://tools.ietf.org/html/rfc7946#section-3.1.5\n\n[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[7]: https://turfjs.org/docs/api/types/Units\n\n[8]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number\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/length\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":1594651231513,"maintainers":[{"name":"smallsaucepan","email":"james@smallsaucepan.com"},{"name":"morgan.herlocker","email":"morganherlocker@gmail.com"},{"name":"twelch","email":"tim.j.welch@gmail.com"},{"name":"jamesmilneruk","email":"jamesmilner22@hotmail.com"},{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tmcw","email":"tom@macwright.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"}],"_cnpm_publish_time":1594651231513,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}