{"name":"geojson-random","version":"0.1.0","description":"generate random geojson features","main":"index.js","bin":{"geojson-random":"geojson-random"},"scripts":{"test":"tap test.js"},"repository":{"type":"git","url":"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"},"_id":"geojson-random@0.1.0","dist":{"shasum":"25836e8c8a5dbedb6a2f471a56d21ccbf97e4c97","tarball":"http://registry-npm.ywwl.com/geojson-random/download/geojson-random-0.1.0.tgz","integrity":"sha512-ExkT+9OV0HfhQA75RPmLxko0ufaIbNb/uPTtpa09Xf853c9uKdziVV/L/32OS6sv5vNxLEYhg5W9ae1dZsVEAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDD+GvrrKpiHa6b8ahd5Hp2dG1x72+UxFSZBUll6fYB6QIhAIQr1BZzW7C+r6vXmQpivpWnreGGBdJv1HjNtTbJgqmO"}],"size":1049,"noattachment":false,"key":"/geojson-random/-/geojson-random-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"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":1406151542787,"_cnpm_publish_time":1406151542787,"dist-tags":{"latest":"0.5.0"}}