{"_id":"turf-aggregate","_rev":"34-5f272a110bb926d27fb015e38c25a242","name":"turf-aggregate","description":"turf aggregate module","dist-tags":{"latest":"3.0.1","canary":"3.0.0-canary.7879bf6c"},"versions":{"0.0.1":{"name":"turf-aggregate","version":"0.0.1","description":"turf aggregate module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/morganherlocker/turf-aggregate.git"},"keywords":["turf","aggregate","points","geojson","polygons","stats"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/morganherlocker/turf-aggregate/issues"},"homepage":"https://github.com/morganherlocker/turf-aggregate","devDependencies":{"tape":"^2.13.1","turf-featurecollection":"^0.1.0","turf-point":"^0.1.0","turf-polygon":"^0.1.0"},"dependencies":{"turf-average":"0.0.1","turf-count":"0.0.1","turf-deviation":"0.0.1","turf-max":"0.0.1","turf-median":"0.0.1","turf-min":"0.0.1","turf-sum":"0.0.1","turf-variance":"0.0.1"},"_id":"turf-aggregate@0.0.1","dist":{"shasum":"0217b815ee8af8899cfc625c194bd39801df0867","tarball":"https://registry.npmjs.org/turf-aggregate/-/turf-aggregate-0.0.1.tgz","integrity":"sha512-gqdwtfZOOj/OvSACusPNvNnNXJ8xq+z+CgFVMrI47txnO0RzP8JxMtSYozt4rMlX8OF77UCmZIJpciRLBoyhXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAO3/KgggSROyYscNZA0V/hYiXEYPbafUpDrQdudQV1MAiBSmE9q14oqWif0aaCEwj6KCMpISJ4JnTmvMMgW73ONFA=="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"}]},"0.0.2":{"name":"turf-aggregate","version":"0.0.2","description":"turf aggregate module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/morganherlocker/turf-aggregate.git"},"keywords":["turf","aggregate","points","geojson","polygons","stats"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/morganherlocker/turf-aggregate/issues"},"homepage":"https://github.com/morganherlocker/turf-aggregate","devDependencies":{"tape":"^2.13.1","turf-featurecollection":"^0.1.0","turf-point":"^0.1.0","turf-polygon":"^0.1.0"},"dependencies":{"turf-average":"0.0.1","turf-count":"0.0.1","turf-deviation":"0.0.1","turf-max":"0.0.1","turf-median":"0.0.1","turf-min":"0.0.1","turf-sum":"0.0.1","turf-variance":"0.0.1"},"_id":"turf-aggregate@0.0.2","dist":{"shasum":"fbb1c65dfe05b1e393f01b37eae137041f209617","tarball":"https://registry.npmjs.org/turf-aggregate/-/turf-aggregate-0.0.2.tgz","integrity":"sha512-1bTWxCLHxwaFdOfCPIvueImUNKpxsZNy9M8drmeXAxMZIPXM2MH0EMOBPPPFDxpY/l8dfxm2tGG2O4I2vYxiIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDivh/uEy5Oto2nhyTRzCsK6Be9hNAEHEz2ZIzdzcudIAIgWGZtU/1WGDXmrbWwq+oivNvAM68T5rCY+x/oXWEaOAU="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"}]},"0.0.3":{"name":"turf-aggregate","version":"0.0.3","description":"turf aggregate module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/morganherlocker/turf-aggregate.git"},"keywords":["turf","aggregate","points","geojson","polygons","stats"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/morganherlocker/turf-aggregate/issues"},"homepage":"https://github.com/morganherlocker/turf-aggregate","devDependencies":{"tape":"^2.13.1","turf-featurecollection":"^0.1.0","turf-point":"^0.1.0","turf-polygon":"^0.1.0"},"dependencies":{"turf-average":"0.0.1","turf-count":"0.0.1","turf-deviation":"0.0.1","turf-max":"0.0.1","turf-median":"0.0.1","turf-min":"0.0.1","turf-sum":"0.0.1","turf-variance":"0.0.1"},"_id":"turf-aggregate@0.0.3","dist":{"shasum":"e2b8ff9f38b7b2d80fc83a6945b521af1764525c","tarball":"https://registry.npmjs.org/turf-aggregate/-/turf-aggregate-0.0.3.tgz","integrity":"sha512-2LE6N/i8dg00WHZVya8tSsOg4DzbrUsYH0hiUP31SlPEBO63eJ8OO0RkhHgxlZzjFSh+UuhTDHOvhPob4033yg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/hDExg9nibBN25qf01Mt8gK6EBbXszyUDBcvoUCnq3gIhAJl0AJxmWCz3fBI3mpMks9bfUuDpky7qoe/3kT5MEVlS"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"}]},"0.1.1":{"name":"turf-aggregate","version":"0.1.1","description":"turf aggregate module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/morganherlocker/turf-aggregate.git"},"keywords":["turf","aggregate","points","geojson","polygons","stats"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/morganherlocker/turf-aggregate/issues"},"homepage":"https://github.com/morganherlocker/turf-aggregate","devDependencies":{"tape":"^2.13.3","turf-featurecollection":"^0.1.0","turf-point":"^0.1.1","turf-polygon":"^0.1.1"},"dependencies":{"turf-average":"0.0.2","turf-count":"0.0.4","turf-deviation":"0.0.2","turf-max":"0.0.3","turf-median":"0.0.2","turf-min":"0.0.2","turf-sum":"0.0.2","turf-variance":"0.0.2"},"_id":"turf-aggregate@0.1.1","dist":{"shasum":"5bd755921dd0308767cd8f14f65a043666639a2e","tarball":"https://registry.npmjs.org/turf-aggregate/-/turf-aggregate-0.1.1.tgz","integrity":"sha512-tyaVuC9W5BeBZ8O1VXs3DiitxBBCEeIE2X10BqQSWy9L9kM1IfOfLSqDSdrUQqeZYBpyiJov56Mcrpi6rwJsHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtXiWaZ35FUeiV/ejeJA3YheEFOf2KGGnRemvDV8MzlAIgB0fKNBxtYrviw7k02mbVxpLFhK3drPq7DAXyt6rb/mk="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"}]},"1.0.0":{"name":"turf-aggregate","version":"1.0.0","description":"turf aggregate module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/morganherlocker/turf-aggregate.git"},"keywords":["turf","aggregate","points","geojson","polygons","stats"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/morganherlocker/turf-aggregate/issues"},"homepage":"https://github.com/morganherlocker/turf-aggregate","devDependencies":{"benchmark":"^1.0.0","tape":"^2.13.3","turf-featurecollection":"^0.1.0","turf-point":"^0.1.1","turf-polygon":"^0.1.1"},"dependencies":{"turf-average":"0.1.1","turf-count":"0.0.4","turf-deviation":"0.0.2","turf-max":"0.0.3","turf-median":"0.0.2","turf-min":"0.0.2","turf-sum":"0.0.2","turf-variance":"0.0.2"},"gitHead":"574b7c6367be03b29cd11a2071c5238ecb332ba0","_id":"turf-aggregate@1.0.0","_shasum":"8671b0a863992dd06865ab106dd09c6b67d86f18","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"}],"dist":{"shasum":"8671b0a863992dd06865ab106dd09c6b67d86f18","tarball":"https://registry.npmjs.org/turf-aggregate/-/turf-aggregate-1.0.0.tgz","integrity":"sha512-jrHQPYBttkC0rIFtMBOPAVkbzFpuwHJc88UJZ7kszp7NdH5IyharbdzKOpglAedKrvyJC7JGHph8+SrShjfoAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDl1p1AHzL8XzPxINan4Y7VRFtDO+jmqQdDUmm1+C1/WAiBiVjWQP3nplOuL5RoBv5DvYHYUhwbCdzkvRiXNUnM0ig=="}]}},"1.0.2":{"name":"turf-aggregate","version":"1.0.2","description":"turf aggregate module","main":"index.js","scripts":{"test":"tape test.js","doc":"dox -r < index.js | doxme --readme > README.md"},"repository":{"type":"git","url":"https://github.com/Turfjs/turf-aggregate.git"},"keywords":["turf","aggregate","points","geojson","polygons","stats"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/Turfjs/turf-aggregate/issues"},"homepage":"https://github.com/Turfjs/turf-aggregate","devDependencies":{"benchmark":"^1.0.0","tape":"^3.5.0","turf-featurecollection":"^1.0.0","turf-point":"^2.0.0","turf-polygon":"^1.0.2","dox":"^0.6.1","doxme":"^1.4.3"},"dependencies":{"turf-average":"^1.1.0","turf-count":"^1.0.1","turf-deviation":"^1.0.0","turf-max":"^1.0.0","turf-median":"^1.0.1","turf-min":"^1.0.0","turf-sum":"^1.0.0","turf-variance":"^1.0.0"},"gitHead":"53cfd991e90e454947bc5867477e3158d64d1953","_id":"turf-aggregate@1.0.2","_shasum":"4b7e030ef174bbc824038f55342f52ea0dfa9c27","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"jvrousseau","email":"jv.rousseau@outlook.com"},{"name":"jseppi","email":"james.seppi@gmail.com"},{"name":"cspanring","email":"cspanring@gmail.com"},{"name":"cwmma","email":"calvin.metcalf@gmail.com"},{"name":"lyzidiamond","email":"lyzi@mapbox.com"},{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"4b7e030ef174bbc824038f55342f52ea0dfa9c27","tarball":"https://registry.npmjs.org/turf-aggregate/-/turf-aggregate-1.0.2.tgz","integrity":"sha512-kz0Q8HY+ySGQXz6goLKMFh8X0czu4SfWUdWA1sSSFhnod6/w09JoogxdxW/2VnHYvWRdQSPeubFZRD70wbOJOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCIG8r9uBVWltqkGRrzSZl8s9XKSTtpAt1gZyLmpn6hwBPAh9XMV4eTgZftTyShVBiSixE2BZiZjv1j4+2xY0NF4b5"}]}},"1.0.3":{"name":"turf-aggregate","version":"1.0.3","description":"turf aggregate module","main":"index.js","scripts":{"test":"tape test.js","doc":"dox -r < index.js | doxme --readme > README.md"},"repository":{"type":"git","url":"git+https://github.com/Turfjs/turf-aggregate.git"},"keywords":["turf","aggregate","points","geojson","polygons","stats"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/Turfjs/turf-aggregate/issues"},"homepage":"https://github.com/Turfjs/turf-aggregate","devDependencies":{"benchmark":"^1.0.0","tape":"^3.5.0","turf-featurecollection":"^1.0.0","turf-point":"^2.0.0","turf-polygon":"^1.0.2","dox":"^0.6.1","doxme":"^1.4.3"},"dependencies":{"turf-average":"^1.1.0","turf-count":"^1.0.1","turf-deviation":"^1.0.0","turf-max":"^1.0.0","turf-median":"^1.0.1","turf-min":"^1.0.0","turf-sum":"^1.0.0","turf-variance":"^1.0.0"},"gitHead":"f693d2d320034d84db902f2cfbff34ec7d140861","_id":"turf-aggregate@1.0.3","_shasum":"dc62d46957a15a79c7ed2792d1dbff52b17858ca","_from":".","_npmVersion":"2.14.9","_nodeVersion":"0.12.9","_npmUser":{"name":"tcql","email":"tim.channell@gmail.com"},"maintainers":[{"name":"cspanring","email":"cspanring@gmail.com"},{"name":"cwmma","email":"calvin.metcalf@gmail.com"},{"name":"jseppi","email":"james.seppi@gmail.com"},{"name":"jvrousseau","email":"jv.rousseau@outlook.com"},{"name":"lyzidiamond","email":"lyzi@mapbox.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"dc62d46957a15a79c7ed2792d1dbff52b17858ca","tarball":"https://registry.npmjs.org/turf-aggregate/-/turf-aggregate-1.0.3.tgz","integrity":"sha512-1d1JEKT5yz8Dg6ob3yH6RBh/6yTYC1ewtXuSrF1iQgk6AVPxTmwfx4MQuTlDtzEg+MdY86rLs66dYMqlMGNTNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHUMiCgdBJapEPR0CVzipMoRCO6X80BLrzXEkjckV5KmAiEA0woUCaYU7rJQZswlQ3asE/fuJuAzBZktm4IRoO+UWg8="}]}},"3.0.0-canary.2f5f7167":{"name":"turf-aggregate","version":"3.0.0-canary.2f5f7167","description":"turf aggregate module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/Turfjs/turf-aggregate.git"},"keywords":["turf","aggregate","points","geojson","polygons","stats"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/Turfjs/turf-aggregate/issues"},"homepage":"https://github.com/Turfjs/turf-aggregate","devDependencies":{"benchmark":"^1.0.0","tape":"^3.5.0","turf-helpers":"^3.0.0-canary.2f5f7167"},"dependencies":{"turf-inside":"^3.0.0-canary.2f5f7167"},"_id":"turf-aggregate@3.0.0-canary.2f5f7167","_shasum":"b45b134f64d1128e67b7bea7fd4b41dfb812a008","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.0","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"b45b134f64d1128e67b7bea7fd4b41dfb812a008","tarball":"https://registry.npmjs.org/turf-aggregate/-/turf-aggregate-3.0.0-canary.2f5f7167.tgz","integrity":"sha512-/SuTORbeoGjPEinzDQDnlOzkB8Uvp3JsdujRvFWoNl7YjsdEzhagP8cX4GruS54oyLMgrVRLAaL/B2Z1dNmjKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLpa/AFaDzRb97PcSqpbzVlGpivl45QDS4VOmLG9CHcgIgEdbpXqNssZ6KrrZBEz4gFjQxQmGEZRrWQVyzGkiTwRo="}]},"maintainers":[{"name":"cspanring","email":"cspanring@gmail.com"},{"name":"cwmma","email":"calvin.metcalf@gmail.com"},{"name":"jseppi","email":"james.seppi@gmail.com"},{"name":"jvrousseau","email":"jv.rousseau@outlook.com"},{"name":"lyzidiamond","email":"lyzi@mapbox.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/turf-aggregate-3.0.0-canary.2f5f7167.tgz_1463429068284_0.021835780702531338"}},"3.0.0-canary.7879bf6c":{"name":"turf-aggregate","version":"3.0.0-canary.7879bf6c","description":"turf aggregate module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/Turfjs/turf-aggregate.git"},"keywords":["turf","aggregate","points","geojson","polygons","stats"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/Turfjs/turf-aggregate/issues"},"homepage":"https://github.com/Turfjs/turf-aggregate","devDependencies":{"benchmark":"^1.0.0","tape":"^3.5.0","turf-helpers":"^3.0.0-canary.7879bf6c"},"dependencies":{"turf-inside":"^3.0.0-canary.7879bf6c"},"_id":"turf-aggregate@3.0.0-canary.7879bf6c","_shasum":"1e59a9089feab933bfce748dd51bb6a55fb1ebe3","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.0","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"1e59a9089feab933bfce748dd51bb6a55fb1ebe3","tarball":"https://registry.npmjs.org/turf-aggregate/-/turf-aggregate-3.0.0-canary.7879bf6c.tgz","integrity":"sha512-CJRgO3SR2AAAbLYBCy13WS1WqW96xhkd1aPJM06d+cqyUvES8qOuEk8J4FlwoA3Uni9E1F0cd2ElZfgXkhz/NQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHiUEAM1h+1aunh3e/6uSj29oNaCbSOkK1r1xj+VUzIqAiEA3aXRfVYHU0gowmscSnrBXHzi21oly0l2f18we4HMIu0="}]},"maintainers":[{"name":"cspanring","email":"cspanring@gmail.com"},{"name":"cwmma","email":"calvin.metcalf@gmail.com"},{"name":"jseppi","email":"james.seppi@gmail.com"},{"name":"jvrousseau","email":"jv.rousseau@outlook.com"},{"name":"lyzidiamond","email":"lyzi@mapbox.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/turf-aggregate-3.0.0-canary.7879bf6c.tgz_1463430913854_0.9263763502240181"}},"3.0.1":{"name":"turf-aggregate","version":"3.0.1","description":"turf aggregate module","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/Turfjs/turf-aggregate.git"},"keywords":["turf","aggregate","points","geojson","polygons","stats"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/Turfjs/turf-aggregate/issues"},"homepage":"https://github.com/Turfjs/turf-aggregate","devDependencies":{"benchmark":"^1.0.0","tape":"^3.5.0","turf-helpers":"^3.0.1"},"dependencies":{"turf-inside":"^3.0.1"},"_id":"turf-aggregate@3.0.1","_shasum":"b99e02afbc38e69747b459084affb8078a9931e1","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.0","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"b99e02afbc38e69747b459084affb8078a9931e1","tarball":"https://registry.npmjs.org/turf-aggregate/-/turf-aggregate-3.0.1.tgz","integrity":"sha512-DwPxAno1VCA1SVVZYei9GrvjCq8j0W1xSiVu4gJQJk0byw+mEIkGcAz3MVezmzTqhBfWNPD3PHIYE5+7sMNzKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXxIG78DVtCsV5Tj9GIrCWJG7AybSCF34ePUhQ3wd9NQIhALcX4y7EUQbTsQbVCIkVdkV7QYZoLbzuYQW38XDsVAK+"}]},"maintainers":[{"name":"cspanring","email":"cspanring@gmail.com"},{"name":"cwmma","email":"calvin.metcalf@gmail.com"},{"name":"jseppi","email":"james.seppi@gmail.com"},{"name":"jvrousseau","email":"jv.rousseau@outlook.com"},{"name":"lyzidiamond","email":"lyzi@mapbox.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/turf-aggregate-3.0.1.tgz_1463431487501_0.15699716401286423"}}},"readme":"# turf-aggregate\n\n[![build status](https://secure.travis-ci.org/Turfjs/turf-aggregate.png)](http://travis-ci.org/Turfjs/turf-aggregate)\n\nturf aggregate module\n\n\n### `turf.aggregate(polygons, points, aggregations)`\n\nCalculates a series of aggregations for a set of Point|points within a set of Polygon|polygons. Sum, average, count, min, max, and deviation are supported.\n\n\n### Parameters\n\n| parameter      | type                           | description                                |\n| -------------- | ------------------------------ | ------------------------------------------ |\n| `polygons`     | FeatureCollection\\.\\<Polygon\\> | polygons with values on which to aggregate |\n| `points`       | FeatureCollection\\.\\<Point\\>   | points to be aggregated                    |\n| `aggregations` | Array                          | an array of aggregation objects            |\n\n\n### Example\n\n```js\nvar polygons = {\n  \"type\": \"FeatureCollection\",\n  \"features\": [\n    {\n      \"type\": \"Feature\",\n      \"properties\": {},\n      \"geometry\": {\n        \"type\": \"Polygon\",\n        \"coordinates\": [[\n          [1.669921, 48.632908],\n          [1.669921, 49.382372],\n          [3.636474, 49.382372],\n          [3.636474, 48.632908],\n          [1.669921, 48.632908]\n        ]]\n      }\n    }, {\n      \"type\": \"Feature\",\n      \"properties\": {},\n      \"geometry\": {\n        \"type\": \"Polygon\",\n        \"coordinates\": [[\n          [2.230224, 47.85003],\n          [2.230224, 48.611121],\n          [4.361572, 48.611121],\n          [4.361572, 47.85003],\n          [2.230224, 47.85003]\n        ]]\n      }\n    }\n  ]\n};\nvar points = {\n  \"type\": \"FeatureCollection\",\n  \"features\": [\n    {\n      \"type\": \"Feature\",\n      \"properties\": {\n        \"population\": 200\n      },\n      \"geometry\": {\n        \"type\": \"Point\",\n        \"coordinates\": [2.054443,49.138596]\n      }\n    },\n    {\n      \"type\": \"Feature\",\n      \"properties\": {\n        \"population\": 600\n      },\n      \"geometry\": {\n        \"type\": \"Point\",\n        \"coordinates\": [3.065185,48.850258]\n      }\n    },\n    {\n      \"type\": \"Feature\",\n      \"properties\": {\n        \"population\": 100\n      },\n      \"geometry\": {\n        \"type\": \"Point\",\n        \"coordinates\": [2.329101,48.79239]\n      }\n    },\n    {\n      \"type\": \"Feature\",\n      \"properties\": {\n        \"population\": 200\n      },\n      \"geometry\": {\n        \"type\": \"Point\",\n        \"coordinates\": [2.614746,48.334343]\n      }\n    },\n    {\n      \"type\": \"Feature\",\n      \"properties\": {\n        \"population\": 300\n      },\n      \"geometry\": {\n        \"type\": \"Point\",\n        \"coordinates\": [3.416748,48.056053]\n      }\n    }\n  ]\n};\nvar aggregations = [\n  {\n    aggregation: 'sum',\n    inField: 'population',\n    outField: 'pop_sum'\n  },\n  {\n    aggregation: 'average',\n    inField: 'population',\n    outField: 'pop_avg'\n  },\n  {\n    aggregation: 'median',\n    inField: 'population',\n    outField: 'pop_median'\n  },\n  {\n    aggregation: 'min',\n    inField: 'population',\n    outField: 'pop_min'\n  },\n  {\n    aggregation: 'max',\n    inField: 'population',\n    outField: 'pop_max'\n  },\n  {\n    aggregation: 'deviation',\n    inField: 'population',\n    outField: 'pop_deviation'\n  },\n  {\n    aggregation: 'variance',\n    inField: 'population',\n    outField: 'pop_variance'\n  },\n  {\n    aggregation: 'count',\n    inField: '',\n    outField: 'point_count'\n  }\n];\n\nvar aggregated = turf.aggregate(\n  polygons, points, aggregations);\n\nvar result = turf.featurecollection(\n  points.features.concat(aggregated.features));\n\n//=result\n```\n\n\n**Returns** `FeatureCollection.<Polygon>`, polygons with properties listed based on `outField` values in `aggregations`\n\n## Installation\n\nRequires [nodejs](http://nodejs.org/).\n\n```sh\n$ npm install turf-aggregate\n```\n\n## Tests\n\n```sh\n$ npm test\n```\n\n\n","maintainers":[{"email":"tim.channell@gmail.com","name":"tcql"},{"email":"agafonkin@gmail.com","name":"mourner"},{"email":"jv.rousseau@outlook.com","name":"jvrousseau"},{"email":"james.seppi@gmail.com","name":"jseppi"},{"email":"cspanring@gmail.com","name":"cspanring"},{"email":"calvin.metcalf@gmail.com","name":"cwmma"},{"email":"lyzi@mapbox.com","name":"lyzidiamond"},{"email":"tom@macwright.org","name":"tmcw"},{"email":"morgan.herlocker@gmail.com","name":"morganherlocker"}],"time":{"modified":"2022-06-27T23:26:55.347Z","created":"2014-05-20T21:08:57.457Z","0.0.1":"2014-05-20T21:08:57.457Z","0.0.2":"2014-05-29T22:28:44.605Z","0.0.3":"2014-05-29T22:30:14.317Z","0.1.1":"2014-06-19T15:31:33.368Z","1.0.0":"2014-12-10T00:00:23.895Z","1.0.2":"2015-02-06T21:42:07.812Z","1.0.3":"2015-12-18T20:34:07.713Z","3.0.0-canary.2f5f7167":"2016-05-16T20:04:30.690Z","3.0.0-canary.7879bf6c":"2016-05-16T20:35:16.370Z","3.0.1":"2016-05-16T20:44:51.231Z"},"homepage":"https://github.com/Turfjs/turf-aggregate","keywords":["turf","aggregate","points","geojson","polygons","stats"],"repository":{"type":"git","url":"git+https://github.com/Turfjs/turf-aggregate.git"},"author":{"name":"morganherlocker"},"bugs":{"url":"https://github.com/Turfjs/turf-aggregate/issues"},"license":"MIT","readmeFilename":"README.md"}