{"name":"@turf/circle","version":"3.13.0","keywords":["turf","circle","radius","polygon","miles","km"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/circle@3.13.0","maintainers":[{"name":"deniscarriere","email":"carriere.denis@gmail.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"tmcw","email":"tom@macwright.org"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"0e4fd790aa3a6e48cb113515fdeb3faaf17abde8","tarball":"http://registry-npm.ywwl.com/@turf/circle/download/@turf/circle-3.13.0.tgz","integrity":"sha512-TRyMR4An9rX8XV1UzlJVzvJlkuh2sBZmDroXoKzMP3wx5NLjpQCUTdNzDIcZraBpwKlVsMIWdRs36cOKS45+/w==","signatures":[{"sig":"MEUCIQCsCrezd79vygP4GMs01jVflntejY5twNK4wIKV1JFjkgIgVdCDtJi10Rn4JbXdxo6LNbxt4O+ShEywDfSxrKZUtgk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2440,"noattachment":false,"key":"/@turf/circle/-/@turf/circle-3.13.0.tgz"},"main":"index.js","_from":".","files":["index.js","index.d.ts"],"types":"index.d.ts","_shasum":"0e4fd790aa3a6e48cb113515fdeb3faaf17abde8","scripts":{"test":"node test.js","bench":"node bench.js"},"_npmUser":{"name":"deniscarriere","email":"carriere.denis@gmail.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"3.10.10","description":"turf circle module","directories":{},"_nodeVersion":"6.9.5","dependencies":{"@turf/helpers":"^3.13.0","@turf/destination":"^3.13.0"},"devDependencies":{"tape":"^3.5.0","benchmark":"^1.0.0","@turf/inside":"^3.13.0","@turf/distance":"^3.13.0"},"_npmOperationalInternal":{"tmp":"tmp/circle-3.13.0.tgz_1489294881508_0.9384073957335204","host":"packages-12-west.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":1489294881766,"_cnpm_publish_time":1489294881766,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}