{"name":"geojson-random","version":"0.4.0","description":"generate random geojson features","main":"index.js","bin":{"geojson-random":"geojson-random"},"scripts":{"test":"tap test.js","release":"standard-version"},"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":{"cz-conventional-changelog":"^2.0.0","standard-version":"^4.0.0","tap":"^10.3.2"},"dependencies":{"from2":"^2.1.0","geojson-stream":"0.0.1"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"ee0f0d66597c28819dace9954eda8b1d26160ec7","_id":"geojson-random@0.4.0","_shasum":"6a1537c0bfdbbad6508cc9e90b43d65faeb0b8dc","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"tmcw","email":"tom+npm@macwright.org"},"dist":{"shasum":"6a1537c0bfdbbad6508cc9e90b43d65faeb0b8dc","tarball":"http://registry-npm.ywwl.com/geojson-random/download/geojson-random-0.4.0.tgz","integrity":"sha512-m+6ruzCz00WXme8l6MXPOnhm0jHnSsNYuFfcSpfr3L0UW6r6S5K8Y9ay7ETpDICIAAkdTu5tKT9tgU8iaLmQlg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC094Id3tAT+WrHV1Me5tGWDM1FWntEfRiA6fAZNHDkqQIhAI4WafIPzptbPEcxkqntRtLiUrMwdjRa+IrnhbMneQ+E"}],"size":24547,"noattachment":false,"key":"/geojson-random/-/geojson-random-0.4.0.tgz"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/geojson-random-0.4.0.tgz_1493137924368_0.5155242297332734"},"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":1493137926302,"_cnpm_publish_time":1493137926302,"dist-tags":{"latest":"0.5.0"}}