{"name":"@turf/inside","version":"3.10.0","keywords":["geojson","polygon","point","inside","bin","gis"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/inside@3.10.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"60df6b3aa6a51fc394a00a332113d59989cdbdfe","tarball":"http://registry-npm.ywwl.com/@turf/inside/download/@turf/inside-3.10.0.tgz","integrity":"sha512-s+Gx+inp2UltADpIP2KoGai4bgjCagGf/Dc8i7+Q1WDSV5mPqu1oFQmPBTCs71c7s4xNZm1r+5BKzn05J/dRig==","signatures":[{"sig":"MEQCIDV+v19/4mZJobUgZs7p9TR+HcODx7QGjQtH5zrNmtbuAiAe3gI6+bobG5pnQpwTpO2cbGjqfuxj+2bB8rr175scMg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":4147,"noattachment":false,"key":"/@turf/inside/-/@turf/inside-3.10.0.tgz"},"main":"index.js","_from":".","types":"index.d.ts","_shasum":"60df6b3aa6a51fc394a00a332113d59989cdbdfe","scripts":{"test":"tape test.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.9.5","dependencies":{"@turf/invariant":"^3.10.0"},"devDependencies":{"tape":"^3.5.0","benchmark":"^1.0.0","@turf/helpers":"^3.10.0"},"_npmOperationalInternal":{"tmp":"tmp/inside-3.10.0.tgz_1487104190923_0.3038531804922968","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":1487104192827,"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":1487104192827,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"5.0.0","lerna-temp":"4.7.1"}}