{"name":"geojson-random","version":"0.3.0","description":"generate random geojson features","main":"index.js","bin":{"geojson-random":"geojson-random"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/tmcw/geojson-random.git"},"keywords":["geojson","random"],"author":{"name":"Tom MacWright"},"license":"ISC","bugs":{"url":"https://github.com/tmcw/geojson-random/issues"},"homepage":"https://github.com/tmcw/geojson-random","devDependencies":{"tape":"~2.13.4"},"dependencies":{"from2":"^2.1.0","geojson-stream":"0.0.0"},"gitHead":"fde5b53feb4eb6ef1af610082f86598511731ceb","_id":"geojson-random@0.3.0","_shasum":"248e81c29b24e1a9a7471ee4db1326f0d83c4cb7","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"tmcw","email":"tom+npm@macwright.org"},"dist":{"shasum":"248e81c29b24e1a9a7471ee4db1326f0d83c4cb7","tarball":"http://registry-npm.ywwl.com/geojson-random/download/geojson-random-0.3.0.tgz","integrity":"sha512-XhiqsNMnHQYdmAs/sEJBqcxa0fihKbQ5AOiOtP+ADT0lpzQ6vdmjPUe7Y6ndRhL9AkVjiS4gXNP4OX6XmK90vw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRLo9xDOLglKieGt4HNrNhAHlF9hukDqIFoAYDVoNsDwIhALtNVMmlWU7ITmpzgmusqhnqECchZqzyZqaZ6DquMquB"}],"size":2970,"noattachment":false,"key":"/geojson-random/-/geojson-random-0.3.0.tgz"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/geojson-random-0.3.0.tgz_1490046885013_0.0845155124552548"},"directories":{},"readme":"# geojson-random\n\n[![CircleCI](https://circleci.com/gh/node-geojson/geojson-random.svg?style=svg)](https://circleci.com/gh/node-geojson/geojson-random)\n\nGenerate random [GeoJSON](http://geojson.org/) features.\n\nUsable in [node.js](http://nodejs.org/) and in browsers with [browserify](http://browserify.org/).\n\n    npm install -g geojson-random\n    geojson-random\n\n    # special fast-mode for points\n    geojson-random 10000 point-stream\n\n## api\n\n```js\nvar random = require('geojson-random');\n```\n\n### `random.point(count, bbox)`\n\nReturn `count` points wrapped in a FeatureCollection.\n\nAn optional `bbox` parameter should be an array of numbers representing\na [bbox](http://geojson.org/geojson-spec.html#bounding-boxes) in WSEN order,\nand if given, the point will reside within its bounds.\n\n### `random.position(bbox?)`\n\nReturn a single GeoJSON [Position](http://geojson.org/geojson-spec.html#positions)\nas a 2-element array of numbers in longitude, latitude order.\n\nAn optional `bbox` parameter should be an array of numbers representing\na [bbox](http://geojson.org/geojson-spec.html#bounding-boxes) in WSEN order,\nand if given, the position will reside within its bounds.\n\n### `random.polygon(count, num_vertices, max_radial_length, bbox)`\n\nReturn `count` polygons wrapped in a FeatureCollection.\n\n* `num_vertices` is default `10` and is how many coordinates each Polygon\n  will contain.\n* `max_radial_length` is the maximum number of decimal degrees latitude\n  or longitude that a vertex can reach out of the center of the Polygon.\n  Default is `10`.\n* `bbox` (Optional) Bounding box in [minX, minY, maxX, maxY] order.\n\n### `random.lineString(count, num_vertices, max_length, max_rotation, bbox)`\n\nReturn `count` line strings wrapped in a FeatureCollection.\n\n* `num_vertices` is default `10` and is how many coordinates each LineString\n  will contain.\n* `max_length` is the maximum number of decimal degrees that a vertex can be\n  from its predecessor\n  Default is `0.0001`.\n* `max_rotation` is the maximum number of radians that a line segment can turn\n  from the previous segment.\n  Default is `Math.PI / 8`.\n* `bbox` (Optional) Bounding box in [minX, minY, maxX, maxY] order. This\n  parameter is only applied to the starting point of the line.\n","publish_time":1490046885679,"_cnpm_publish_time":1490046885679,"dist-tags":{"latest":"0.5.0"}}