{"name":"@turf/inside","version":"4.0.1","keywords":["geojson","polygon","point","inside","bin","gis"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/inside@4.0.1","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"2ad416196e0f41ec312cc4b8913ed619747257fb","tarball":"http://registry-npm.ywwl.com/@turf/inside/download/@turf/inside-4.0.1.tgz","integrity":"sha512-CIwwYtflc6xoq90m8b2fBIWeiPI2WiCBDOb0k2PAGPOOcOwdDCGhlEj0lKfE8F7GC9VBCPE62xsvKsuRCRr8vQ==","signatures":[{"sig":"MEUCIAslWRIEysdSN5yERtaDsc1SElRrpc2l5wsf4lR4kBXGAiEA/D6qBu9URT1++b7NRwsM9x/Yia6hisVkAMBc+DzUzfM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2947,"noattachment":false,"key":"/@turf/inside/-/@turf/inside-4.0.1.tgz"},"main":"index.js","_from":".","files":["index.js","index.d.ts"],"types":"index.d.ts","_shasum":"2ad416196e0f41ec312cc4b8913ed619747257fb","scripts":{"test":"node test.js","bench":"node bench.js"},"_npmUser":{"name":"deniscarriere","email":"carriere.denis@gmail.com"},"deprecated":"Module has been renamed to @turf/boolean-point-in-polygon","repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"3.10.10","description":"turf inside module","directories":{},"_nodeVersion":"6.10.1","dependencies":{"@turf/invariant":"^4.0.1"},"devDependencies":{"tape":"^3.5.0","benchmark":"^1.0.0","@turf/helpers":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/inside-4.0.1.tgz_1491432671035_0.6381861411500722","host":"packages-18-east.internal.npmjs.com"},"readme":"# @turf/inside\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## inside\n\nTakes a [Point](http://geojson.org/geojson-spec.html#point) and a [Polygon](http://geojson.org/geojson-spec.html#polygon) or [MultiPolygon](http://geojson.org/geojson-spec.html#multipolygon) and determines if the point resides inside the polygon. The polygon can\nbe convex or concave. The function accounts for holes.\n\n**Parameters**\n\n-   `point` **[Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;[Point](http://geojson.org/geojson-spec.html#point)>** input point\n-   `polygon` **[Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;([Polygon](http://geojson.org/geojson-spec.html#polygon) \\| [MultiPolygon](http://geojson.org/geojson-spec.html#multipolygon))>** input polygon or multipolygon\n-   `options` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Optional parameters (optional, default `{}`)\n    -   `options.ignoreBoundary` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** True if polygon boundary should be ignored when determining if the point is inside the polygon otherwise false. (optional, default `false`)\n\n**Examples**\n\n```javascript\nvar pt = turf.point([-77, 44]);\nvar poly = turf.polygon([[\n  [-81, 41],\n  [-81, 47],\n  [-72, 47],\n  [-72, 41],\n  [-81, 41]\n]]);\n\nturf.inside(pt, poly);\n//= true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** `true` if the Point is inside the Polygon; `false` if the Point is not inside the Polygon\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/inside\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":1491432673128,"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":1491432673128,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"5.0.0","lerna-temp":"4.7.1"}}