{"name":"turf-within","version":"0.1.1","description":"turf within module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/morganherlocker/turf-within.git"},"keywords":["geojson","within","point","polygon","featurecollection"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/morganherlocker/turf-within/issues"},"homepage":"https://github.com/morganherlocker/turf-within","devDependencies":{"tape":"^2.12.1","turf-point":"^0.1.0","turf-polygon":"^0.1.0"},"dependencies":{"turf-featurecollection":"^0.1.0","turf-inside":"^0.1.1"},"_id":"turf-within@0.1.1","dist":{"shasum":"f88a6ee5b894412edc04224f3a839b852c88d928","tarball":"http://registry-npm.ywwl.com/turf-within/download/turf-within-0.1.1.tgz","integrity":"sha512-uxUr5WASZ3UgTWOX/I2OHnok7pNMwwXs7GkfOyK4KEm5Oy81F6UibgQ2AzX5lGWD7+TrS1GQoG4cbl+g/UFr7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGSTfkXdMRBiV/wuqYMUf93slwrZXuJEfKEO+ugP+WGUAiAjtfGJGiFCxdViMdrimZekytTDLr9iKIy8JW1kOZWtmg=="}],"size":2314,"noattachment":false,"key":"/turf-within/-/turf-within-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"}],"deprecated":"Turf packages are now namespaced: please use @turf/within instead","directories":{},"readme":"# turf-within\n\n[![build status](https://secure.travis-ci.org/Turfjs/turf-within.png)](http://travis-ci.org/Turfjs/turf-within)\n\nturf within module\n\n\n### `turf.within(points, polygons)`\n\nReturns a FeatureCollection of points representing all points that fall\nwithin a collection of polygons.\n\n\n### Parameters\n\n| parameter  | type              | description |\n| ---------- | ----------------- | ----------- |\n| `points`   | FeatureCollection |             |\n| `polygons` | FeatureCollection |             |\n\n\n### Example\n\n```js\nvar searchWithin = turf.featurecollection([\n  turf.polygon([\n    [[-46.653,-23.543],\n     [-46.634,-23.5346],\n     [-46.613,-23.543],\n     [-46.614,-23.559],\n     [-46.631,-23.567],\n     [-46.653,-23.560],\n     [-46.653,-23.543]]\n  ])\n]);\nvar points = turf.featurecollection([\n  turf.point([-46.6318, -23.5523]),\n  turf.point([-46.6246, -23.5325]),\n  turf.point([-46.6062, -23.5513]),\n  turf.point([-46.663, -23.554]),\n  turf.point([-46.643, -23.557])]);\nvar ptsWithin = turf.within(points, searchWithin);\n//=points\n//=searchWithin\n//=ptsWithin\n```\n\n## Installation\n\nRequires [nodejs](http://nodejs.org/).\n\n```sh\n$ npm install turf-within\n```\n\n## Tests\n\n```sh\n$ npm test\n```\n\n","publish_time":1401758007053,"_cnpm_publish_time":1401758007053,"dist-tags":{"canary":"3.0.7-canary.ae89c8b3","latest":"3.0.12"}}