{"name":"@turf/point-on-surface","version":"3.13.0","keywords":["turf","centroid","geojson","point","surface","polygon"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/point-on-surface@3.13.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"197043215f628a2e6c2bce1a6784a014b802dc6a","tarball":"http://registry-npm.ywwl.com/@turf/point-on-surface/download/@turf/point-on-surface-3.13.0.tgz","integrity":"sha512-02y20OweNX9ydrQOdJWTSXrKNEPOsu7beue1xJQqTvg8r2dA/d2bg4VBP5F+2JWeyg6hSCDuXJld35bq8c5XTQ==","signatures":[{"sig":"MEQCIDQ8oOFHZad61pkthivVbNEQtJf4GH9nCoGEURj+H8PuAiA/OaXPpsUnKxK+EatMJoiENIq6TCpB73tiynZbVDdW4w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":3112,"noattachment":false,"key":"/@turf/point-on-surface/-/@turf/point-on-surface-3.13.0.tgz"},"main":"index.js","_from":".","files":["index.js","index.d.ts"],"types":"index.d.ts","_shasum":"197043215f628a2e6c2bce1a6784a014b802dc6a","scripts":{"test":"node test.js","bench":"node bench.js"},"_npmUser":{"name":"deniscarriere","email":"carriere.denis@gmail.com"},"deprecated":"Module has been renamed to @turf/point-on-feature","repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"3.10.10","description":"turf point-on-surface module","directories":{},"_nodeVersion":"6.9.5","dependencies":{"@turf/center":"^3.13.0","@turf/inside":"^3.13.0","@turf/explode":"^3.13.0","@turf/helpers":"^3.13.0","@turf/distance":"^3.13.0"},"devDependencies":{"tape":"^3.5.0","benchmark":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/point-on-surface-3.13.0.tgz_1489294907094_0.9511617487296462","host":"packages-18-east.internal.npmjs.com"},"readme":"# @turf/point-on-surface\n\n# pointOnSurface\n\nTakes a feature and returns a [Point](http://geojson.org/geojson-spec.html#point) guaranteed to be on the surface of the feature.\n\n-   Given a [Polygon](http://geojson.org/geojson-spec.html#polygon), the point will be in the area of the polygon\n-   Given a [LineString](http://geojson.org/geojson-spec.html#linestring), the point will be along the string\n-   Given a [Point](http://geojson.org/geojson-spec.html#point), the point will the same as the input\n\n**Parameters**\n\n-   `fc` **([Feature](http://geojson.org/geojson-spec.html#feature-objects) \\| [FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects))** any feature or set of features\n\n**Examples**\n\n```javascript\n// create a random polygon\nvar polygon = turf.random('polygon');\n\nvar pointOnPolygon = turf.pointOnSurface(polygon);\n\n//addToMap\nvar addToMap = [polygon, pointOnPolygon];\n```\n\nReturns **[Feature](http://geojson.org/geojson-spec.html#feature-objects)** a point on the surface of `input`\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/point-on-surface\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":1489294908865,"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":1489294908865,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"4.7.3","lerna-temp":"4.7.1"}}