{"name":"@turf/circle","version":"3.0.15","keywords":["turf","circle","radius","polygon","miles","km"],"author":{"url":"http://mustafadokumaci.com","name":"Mustafa Dokumacı","email":"mustafa@foraa.com"},"license":"MIT","_id":"@turf/circle@3.0.15","maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"homepage":"https://github.com/Turfjs/turf-circle","bugs":{"url":"https://github.com/Turfjs/turf-circle/issues"},"dist":{"shasum":"cc005ec88fa98f593a20d172c587b514966fbdd6","tarball":"http://registry-npm.ywwl.com/@turf/circle/download/@turf/circle-3.0.15.tgz","integrity":"sha512-C1L3SGPhwgsGFdW6K43MLJXbvi7IBh1RB3AhgrjO2LvMN7H0EmfeNk6bOsBFkmNdGe1NZUhap2ME4sJtWNk89Q==","signatures":[{"sig":"MEYCIQCYNCniza3Tapnxjv7jYRGWHy23giC4IzjdF3gvy/6gZQIhANu9HS4p0/rOs1ivLNPz6G8n0IiizPmx0sSS7Bnjv7EE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2663,"noattachment":false,"key":"/@turf/circle/-/@turf/circle-3.0.15.tgz"},"main":"index.js","_from":".","_shasum":"cc005ec88fa98f593a20d172c587b514966fbdd6","scripts":{"test":"tape test.js"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"repository":{"url":"git+https://github.com/Turfjs/turf-circle.git","type":"git"},"_npmVersion":"2.15.8","description":"turf circle module","directories":{},"_nodeVersion":"4.4.7","dependencies":{"@turf/helpers":"^3.0.15","@turf/destination":"^3.0.15"},"devDependencies":{"tape":"^3.5.0","benchmark":"^1.0.0","@turf/inside":"^3.0.15","@turf/distance":"^3.0.15"},"_npmOperationalInternal":{"tmp":"tmp/circle-3.0.15.tgz_1467820666244_0.043048938969150186","host":"packages-16-east.internal.npmjs.com"},"readme":"# @turf/circle\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## circle\n\nTakes a [Point][1] and calculates the circle polygon given a radius in degrees, radians, miles, or kilometers; and steps for precision.\n\n### Parameters\n\n*   `center` **([Feature][2]<[Point][3]> | [Array][4]<[number][5]>)** center point\n*   `radius` **[number][5]** radius of the circle\n*   `options` **[Object][6]** Optional parameters (optional, default `{}`)\n\n    *   `options.steps` **[number][5]** number of steps (optional, default `64`)\n    *   `options.units` **[string][7]** miles, kilometers, degrees, or radians (optional, default `'kilometers'`)\n    *   `options.properties` **[Object][6]** properties (optional, default `{}`)\n\n### Examples\n\n```javascript\nvar center = [-75.343, 39.984];\nvar radius = 5;\nvar options = {steps: 10, units: 'kilometers', properties: {foo: 'bar'}};\nvar circle = turf.circle(center, radius, options);\n\n//addToMap\nvar addToMap = [turf.point(center), circle]\n```\n\nReturns **[Feature][2]<[Polygon][8]>** circle polygon\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.1.2\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[3]: https://tools.ietf.org/html/rfc7946#section-3.1.2\n\n[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array\n\n[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number\n\n[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[7]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String\n\n[8]: https://tools.ietf.org/html/rfc7946#section-3.1.6\n\n<!-- This file is automatically generated. Please don't edit it directly. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run \"yarn docs\" from the root of the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](https://turfjs.org/), an open source module collection dedicated to geographic algorithms. It is maintained in the [Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create PRs and issues.\n\n### Installation\n\nInstall this single module individually:\n\n```sh\n$ npm install @turf/circle\n```\n\nOr install the all-encompassing @turf/turf module that includes all modules as functions:\n\n```sh\n$ npm install @turf/turf\n```\n","publish_time":1467820667447,"_cnpm_publish_time":1467820667447,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}