{"_id":"@turf/point-on-feature@7.4.0","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"0955f9199c6e958d97da328db16baa50bf63be7f","tarball":"http://registry-npm.ywwl.com/@turf/point-on-feature/download/@turf/point-on-feature-7.4.0.tgz","fileCount":9,"integrity":"sha512-H7YamrW510QJLnhWIT9oecm1siwhwvb4SZrZSqu6hUOS+pFxumJjUYogE+B6kL+Ymtui2+h6cOtOHJnrNrKaEA==","signatures":[{"sig":"MEUCIQDtNudfonJ3sk+tHwi7jKTeJcYCv+y65/ewjt6lDpePNwIgF1/j20G8Yt2xR/ieCI8xOc4vdTPK1JVbo+lU1sU6g9k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCGJqqnpl+tVQlnY3i+ovEe6Cy3ZPhzvXhepO8uRaAzbgIhANva35nKam/FT8mbOZnPUIocoZNSRp3RdzdR8a0dUvkt"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@turf%2fpoint-on-feature@7.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":30957,"size":6218,"noattachment":false,"key":"/@turf/point-on-feature/-/@turf/point-on-feature-7.4.0.tgz"},"main":"dist/cjs/index.cjs","name":"@turf/point-on-feature","type":"module","_from":"file:turf-point-on-feature-7.4.0.tgz","types":"dist/esm/index.d.ts","author":{"name":"Turf Authors"},"module":"dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}},"./package.json":"./package.json"},"funding":"https://opencollective.com/turf","license":"MIT","scripts":{"test":"pnpm run /test:.*/","bench":"tsx bench.ts","build":"tsup --config ../../tsup.config.ts","test:tape":"tsx test.ts"},"version":"7.4.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0c71ceef-9420-45fd-8bb2-ea826b2f2e6c"}},"homepage":"https://github.com/Turfjs/turf","keywords":["turf","centroid","geojson","point","surface","polygon"],"_resolved":"/tmp/34e003c90185cf62191a4a99e874d86e/turf-point-on-feature-7.4.0.tgz","_integrity":"sha512-H7YamrW510QJLnhWIT9oecm1siwhwvb4SZrZSqu6hUOS+pFxumJjUYogE+B6kL+Ymtui2+h6cOtOHJnrNrKaEA==","repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"11.17.0","description":"Takes a Feature or FeatureCollection and returns a Point guaranteed to be on the surface of the feature.","directories":{},"maintainers":[{"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"},{"name":"twelch","email":"tim.j.welch@gmail.com"},{"name":"jamesmilneruk","email":"jamesmilner22@hotmail.com"},{"name":"morgan.herlocker","email":"morganherlocker@gmail.com"}],"sideEffects":false,"_nodeVersion":"26.5.1","dependencies":{"tslib":"^2.8.1","@turf/center":"7.4.0","@turf/explode":"7.4.0","@turf/helpers":"7.4.0","@types/geojson":"^7946.0.10","@turf/nearest-point":"7.4.0","@turf/boolean-point-in-polygon":"7.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.22.4","tape":"^5.10.2","tsup":"^8.5.1","benchmark":"^2.1.4","@turf/meta":"7.4.0","typescript":"^5.9.3","@types/tape":"^5.8.1","@turf/truncate":"7.4.0","write-json-file":"^6.0.0","@types/benchmark":"^2.1.5"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/point-on-feature_7.4.0_1785771263822_0.7745965868955758"},"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":1785771263912,"_cnpm_publish_time":1785771263912,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}