{"id":16386282,"url":"https://github.com/tmcw/geojson-random","last_synced_at":"2025-06-15T08:39:04.693Z","repository":{"id":18950621,"uuid":"22170740","full_name":"tmcw/geojson-random","owner":"tmcw","description":"Generate random GeoJSON features.","archived":false,"fork":false,"pushed_at":"2023-02-27T14:04:45.000Z","size":35,"stargazers_count":75,"open_issues_count":6,"forks_count":16,"subscribers_count":43,"default_branch":"master","last_synced_at":"2025-06-13T16:10:06.931Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmcw.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-07-23T19:08:18.000Z","updated_at":"2025-03-04T14:43:58.000Z","dependencies_parsed_at":"2024-06-18T13:55:17.493Z","dependency_job_id":"49330637-88d3-469e-8f40-d4ebb1c4b8b1","html_url":"https://github.com/tmcw/geojson-random","commit_stats":{"total_commits":44,"total_committers":7,"mean_commits":6.285714285714286,"dds":"0.36363636363636365","last_synced_commit":"74d4842b6a28398071487eaffd7661b2ea127bc6"},"previous_names":["node-geojson/geojson-random"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/tmcw/geojson-random","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcw%2Fgeojson-random","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcw%2Fgeojson-random/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcw%2Fgeojson-random/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcw%2Fgeojson-random/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmcw","download_url":"https://codeload.github.com/tmcw/geojson-random/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcw%2Fgeojson-random/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259835494,"owners_count":22918991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T04:16:49.109Z","updated_at":"2025-06-15T08:39:04.665Z","avatar_url":"https://github.com/tmcw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmcw%2Fgeojson-random","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmcw%2Fgeojson-random","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmcw%2Fgeojson-random/lists"}