{"name":"@turf/point-on-surface","version":"4.7.0","keywords":["turf","centroid","geojson","point","surface","polygon"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/point-on-surface@4.7.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"e59cbe67b403e18430f5eee96c2318c503bae70b","tarball":"http://registry-npm.ywwl.com/@turf/point-on-surface/download/@turf/point-on-surface-4.7.0.tgz","integrity":"sha512-VWNGgMARyyQhjWrNSjXS0aUDoOe6KidqVv0MPvmSAJx9QNGbjXO38cwYWAITNoOve+uSNW2H+tzEIpqIWyI1PQ==","signatures":[{"sig":"MEYCIQCnJrwhOArt63uqoarR75jrGb6dGwr1VxGaRjL93jPrrwIhAKjD943QrUBPtRfEH2avQp6iCTyPQakAgZTjn45RwKnx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":3044,"noattachment":false,"key":"/@turf/point-on-surface/-/@turf/point-on-surface-4.7.0.tgz"},"main":"index.js","_from":".","files":["index.js","index.d.ts"],"types":"index.d.ts","_shasum":"e59cbe67b403e18430f5eee96c2318c503bae70b","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.11.2","dependencies":{"@turf/center":"4.7.0","@turf/inside":"4.7.0","@turf/explode":"4.7.0","@turf/helpers":"4.7.0","@turf/distance":"4.7.0"},"devDependencies":{"tape":"^4.6.3","benchmark":"^2.1.4"},"_npmOperationalInternal":{"tmp":"tmp/point-on-surface-4.7.0.tgz_1504625433033_0.17298102122731507","host":"s3://npm-registry-packages"},"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":1504625433249,"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":1504625433249,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"4.7.3","lerna-temp":"4.7.1"}}