{"name":"@turf/length","version":"7.0.0-alpha.0","keywords":["turf","linestring","length","distance","units","gis"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/length@7.0.0-alpha.0","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":"dccaeec4f22cedd60eb6d007df3c19ef5fa77931","tarball":"http://registry-npm.ywwl.com/@turf/length/download/@turf/length-7.0.0-alpha.0.tgz","fileCount":7,"integrity":"sha512-rfdklZ2/gWZdpZjEKutZ6v9ljbT/bIS6H5sxmZKKipae2xG89fHzxcf+pxsg6jPVKz/LBG6hVxwnBfDRc0tK7w==","signatures":[{"sig":"MEQCIHTpXJX008cOy6bYlfQSkT0W/WsGmfPQFL4egow2+COiAiBdK/i+etIJ6ddTAHPbXxu4RsR+3LJu15Y8NcLSNVLZsg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7958,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja8OzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrLeA//cutXASpvLAUCmH14ywPhK6//55C9YQwXMOD65xqTlD6Y1aep\r\nTdmsMBMP2HnrCqrFFXZJkcxGiPOMkV3pONY9MdPq47np9pZ3CRmXwUnPNR8U\r\nmcm+JoV+vN+B2PvOKcoMVL8Oc5iaBSwYxjJTVbb7jcrdGxs87MgdsFQJW+YZ\r\nEdV3s2rAOUmXAlT7FDeXiEDpPThRvwaZaxamRs/J+j7vqyV75U1TB4LxCY7p\r\nroIESBGl0fdEByTCEGpxx887pBknJvaO5R2A+C32PYBLAYigmg/2bv9jmkGl\r\nfNOXwGnMXapMeteWmlTddpWobbhdp46jBYbJf43Ex5vDN/Oic6BJWgUWRt3f\r\ns+QFy/NDitpPcd9y88/WDv9P6CQw4eDYbhxI3lwRKWfeT891RJvs/bx44T1f\r\nlMGgr39/eyfFBdXiu3fC5eXZwgcbKRHgiQom/KxyWCvMgzvKwrY50OaqO1+k\r\nNwPKhzHIYxkYfu6+ysiG2a97I6qixpTkizF8/CQbwnLzIJ+kULaRthI2uXIX\r\newycVh19pD9CYXFYxLJj4GYXhD1K/8A2KEvjHSa8bZS2vag22EDt18EaWybT\r\nCFY8tj7umnbbmVSHDqTLYfoqBq7riE31Jheo85YQXJ1vMsdfpZU/NhaESnMn\r\neIiIxGqW1Y/EtIC1zXnOVf0uEamlIeXLvcY=\r\n=I+qu\r\n-----END PGP SIGNATURE-----\r\n","size":3051,"noattachment":false,"key":"/@turf/length/-/@turf/length-7.0.0-alpha.0.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","exports":{".":{"import":"./dist/es/index.js","require":"./dist/js/index.js"},"./package.json":"./package.json"},"funding":"https://opencollective.com/turf","gitHead":"0edc4c491b999e5ace770a61e1cf549f7c004189","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all test:*","bench":"ts-node bench.js","build":"npm-run-all build:*","build:es":"tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json","build:js":"tsc","test:tape":"ts-node -r esm test.js"},"_npmUser":{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v19.0.1+arm64 (darwin)","description":"turf length module","directories":{},"sideEffects":false,"_nodeVersion":"19.0.1","dependencies":{"tslib":"^2.3.0","@turf/meta":"^7.0.0-alpha.0","@turf/helpers":"^7.0.0-alpha.0","@turf/distance":"^7.0.0-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","tslint":"*","ts-node":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/length_7.0.0-alpha.0_1668006835382_0.6693488779856638","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":1668006835607,"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":1668006835607,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}