{"name":"@turf/point-on-feature","version":"7.0.0-alpha.0","keywords":["turf","centroid","geojson","point","surface","polygon"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/point-on-feature@7.0.0-alpha.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"da12b5df3f958202ecf5ce48c4d493916e676bcf","tarball":"http://registry-npm.ywwl.com/@turf/point-on-feature/download/@turf/point-on-feature-7.0.0-alpha.0.tgz","fileCount":7,"integrity":"sha512-OSV++uOlsmLYh0cZgLtbbFTUS0k9j6Y0HYEbhwdjlF+/vTf1d74Azw4vErqQLrObykKiLNClfy/n4KyddUHlJQ==","signatures":[{"sig":"MEUCIF0RnvCi6fkuykn0+YFbf+oQR7PyhSfQ+mZBKHTqH/BXAiEAkDcffUWsN9sBdgd6ozHsXmdgXheMcTArVUDXf6M8CYg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14182,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja8O6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrE0A//TRZrZxsTl6InCvi+5eJ5pw7/WO5RYmQAOp7dK+5ZXvWh5Ltw\r\nA9HyHL6r5lwj1EiixVLqWkAnqg1DQAW75nJVsd6I+HFhRTSRB5zc2UZdrkGk\r\n0N5Hs/AVRg6af+IfnsZx494Os4Tw6d8+f008IDFCFtRvPVdzJV0pcC2pnFtG\r\nY19ciBwUDRqxqx3X9npubyNlidzUpmHAI3+3I0tB1r4S0pM7vZB2qq0irWAM\r\nqcOc5GIz3WmEpkHXVL5RAgXJ1KQd2Qoia/DaJxz1zSpJTumr0pd+OM9yj1y7\r\nICugZg7e+UhL+yANadStyhouTW5UuQYW1Q/hj7atRVbNTnVVzTHQWx+BmK7f\r\nW//2C46Y7BfeSk7xAzcyhmSjr/L+p8WkABd+RTnJO4BTQgTnZJJjtgCfu0nn\r\nmK90lgeL/xL2G/DLPRgAtEaIi6qR7nODfklR1fHr7UN1H/hXLCG2hEY7kGiI\r\n2dRFjH/eTVDv5o0jtEKM+lVcj49wKDzytFcS6rYDpZ0XM/fOKPZpdpywSDav\r\nO+aMhgyC7Bywtd/r+k/zvZD9m8f13zBJLUXCT0GM6LdgqSFiK5NL1IeFtF3U\r\nYu7NqKlRJohPkhvJKqdC1wf6CVRaXp1P1PijqPkVMh2EmZIz2UfS/2Dpbvhu\r\nPX5YU2NQkqP1XGqC/vmqVlj4HOsCR6HZ+j4=\r\n=U3AH\r\n-----END PGP SIGNATURE-----\r\n","size":3727,"noattachment":false,"key":"/@turf/point-on-feature/-/@turf/point-on-feature-7.0.0-alpha.0.tgz"},"main":"dist/js/index.js","types":"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":"node -r esm bench.js","build":"rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json","test:tape":"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 point-on-feature module","directories":{},"sideEffects":false,"_nodeVersion":"19.0.1","dependencies":{"@turf/center":"^7.0.0-alpha.0","@turf/explode":"^7.0.0-alpha.0","@turf/helpers":"^7.0.0-alpha.0","@turf/nearest-point":"^7.0.0-alpha.0","@turf/boolean-point-in-polygon":"^7.0.0-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","rollup":"*","benchmark":"*","@turf/meta":"^7.0.0-alpha.0","npm-run-all":"*","@turf/truncate":"^7.0.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/point-on-feature_7.0.0-alpha.0_1668006842230_0.6525305217105568","host":"s3://npm-registry-packages"},"readme":"# @turf/point-on-feature\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## pointOnFeature\n\nTakes a Feature or FeatureCollection and returns a [Point][1] guaranteed to be on the surface of the feature.\n\n*   Given a [Polygon][2], the point will be in the area of the polygon\n*   Given a [LineString][3], the point will be along the string\n*   Given a [Point][1], the point will the same as the input\n\n### Parameters\n\n*   `geojson` **[GeoJSON][4]** any Feature or FeatureCollection\n\n### Examples\n\n```javascript\nvar polygon = turf.polygon([[\n  [116, -36],\n  [131, -32],\n  [146, -43],\n  [155, -25],\n  [133, -9],\n  [111, -22],\n  [116, -36]\n]]);\n\nvar pointOnPolygon = turf.pointOnFeature(polygon);\n\n//addToMap\nvar addToMap = [polygon, pointOnPolygon];\n```\n\nReturns **[Feature][5]<[Point][1]>** a point on the surface of `input`\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.1.2\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.1.6\n\n[3]: https://tools.ietf.org/html/rfc7946#section-3.1.4\n\n[4]: https://tools.ietf.org/html/rfc7946#section-3\n\n[5]: https://tools.ietf.org/html/rfc7946#section-3.2\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/point-on-feature\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":1668006842423,"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":1668006842423,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}