{"name":"@turf/point-on-surface","version":"3.5.3","keywords":["turf","centroid","geojson","point","surface","polygon"],"author":{"name":"morganherlocker"},"license":"MIT","_id":"@turf/point-on-surface@3.5.3","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"8ad020463e82e23beaff1e22006a160f3fa2d634","tarball":"http://registry-npm.ywwl.com/@turf/point-on-surface/download/@turf/point-on-surface-3.5.3.tgz","integrity":"sha512-y99Sj/zlDEGOR7Oy0jWI3AC91RSIGYlqqHo/+QIrxUG4X9DN+mUayZlZDhZJwXyg/yHgZPY1YZ73FOtae5RBGg==","signatures":[{"sig":"MEYCIQDlaInWANxkcL5C2qpLv0sM0odFbqoWg52YMUAiEB1gawIhAOIc8pnS8zJGBQJjjiiOVUreLf+LF2u0irKHTRdI/qoz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":3580,"noattachment":false,"key":"/@turf/point-on-surface/-/@turf/point-on-surface-3.5.3.tgz"},"main":"index.js","_from":".","_shasum":"8ad020463e82e23beaff1e22006a160f3fa2d634","scripts":{"test":"node test.js"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"deprecated":"Module has been renamed to @turf/point-on-feature","repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"3.10.8","description":"turf point-on-surface module","directories":{},"_nodeVersion":"4.6.1","dependencies":{"@turf/center":"^3.5.3","@turf/inside":"^3.5.3","@turf/explode":"^3.5.3","@turf/helpers":"^3.5.3","@turf/distance":"^3.5.3"},"devDependencies":{"tape":"^3.5.0","benchmark":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/point-on-surface-3.5.3.tgz_1478534905789_0.6726443234365433","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":1478534906364,"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":1478534906364,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"4.7.3","lerna-temp":"4.7.1"}}