{"name":"turf-within","version":"0.1.2","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.13.3","turf-point":"^0.1.1","turf-polygon":"^0.1.1"},"dependencies":{"turf-featurecollection":"^0.1.0","turf-inside":"^0.1.4"},"gitHead":"bd169d12ab6fa5bdad340b986c024ea904303bc3","_id":"turf-within@0.1.2","_shasum":"59cee19cbc5f404fd1dc05a3cad506a4c520cbef","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"}],"dist":{"shasum":"59cee19cbc5f404fd1dc05a3cad506a4c520cbef","tarball":"http://registry-npm.ywwl.com/turf-within/download/turf-within-0.1.2.tgz","integrity":"sha512-VHY2KHlAHlTmZw7PtBwvZ4uC5IWfpOpLdvA2yvWTR7gQ5/RlcyMzQbRg0S4dOJtDfRpJHcwnYdqo/sUXm+ObvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBMX83lJLNto3kVZloPcJqBvOgK0pbp7yO4975p6g6HgIhALwi7Z72mtTb1qE4rMCNWqza0Dtm5FeXajGm8c9MC9Iv"}],"size":2383,"noattachment":false,"key":"/turf-within/-/turf-within-0.1.2.tgz"},"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":1405447206607,"_cnpm_publish_time":1405447206607,"dist-tags":{"canary":"3.0.7-canary.ae89c8b3","latest":"3.0.12"}}