{"id":19721882,"url":"https://github.com/turfjs/turf-point-grid","last_synced_at":"2025-04-29T21:31:29.774Z","repository":{"id":16977726,"uuid":"19740440","full_name":"Turfjs/turf-point-grid","owner":"Turfjs","description":"Takes a bounding box and a cell depth and outputs a feature collection of points in a grid.","archived":true,"fork":false,"pushed_at":"2017-06-06T13:57:50.000Z","size":25,"stargazers_count":4,"open_issues_count":4,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-03T17:53:20.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Turfjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-13T13:38:57.000Z","updated_at":"2024-12-04T10:53:31.000Z","dependencies_parsed_at":"2022-07-13T13:51:33.904Z","dependency_job_id":null,"html_url":"https://github.com/Turfjs/turf-point-grid","commit_stats":null,"previous_names":["turfjs/turf-grid"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-point-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-point-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-point-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-point-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Turfjs","download_url":"https://codeload.github.com/Turfjs/turf-point-grid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251585863,"owners_count":21613287,"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-11-11T23:15:51.664Z","updated_at":"2025-04-29T21:31:29.448Z","avatar_url":"https://github.com/Turfjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEPRECATED - replaced with [`@turf/point-grid`](https://github.com/Turfjs/turf/tree/master/packages/turf-point-grid)\n# turf-point-grid\n\n[![build status](https://secure.travis-ci.org/Turfjs/turf-point-grid.png)](http://travis-ci.org/Turfjs/turf-point-grid)\n\n\n\n\n### `turf.point-grid(extent, cellWidth, units)`\n\nTakes a bounding box and a cell depth and returns a set of Point|points in a grid.\n\n\n### Parameters\n\n| parameter   | type              | description                                             |\n| ----------- | ----------------- | ------------------------------------------------------- |\n| `extent`    | Array\\.\\\u003cnumber\\\u003e | extent in [minX, minY, maxX, maxY] order                |\n| `cellWidth` | Number            | the distance across each cell                           |\n| `units`     | String            | used in calculating cellWidth ('miles' or 'kilometers') |\n\n\n### Example\n\n```js\nvar extent = [-70.823364, -33.553984, -70.473175, -33.302986];\nvar cellWidth = 3;\nvar units = 'miles';\n\nvar grid = turf.pointGrid(extent, cellWidth, units);\n\n//=grid\n```\n\n\n**Returns** `FeatureCollection.\u003cPoint\u003e`, grid of points\n\n## Installation\n\nRequires [nodejs](http://nodejs.org/).\n\n```sh\n$ npm install turf-point-grid\n```\n\n## Tests\n\n```sh\n$ npm test\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturfjs%2Fturf-point-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturfjs%2Fturf-point-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturfjs%2Fturf-point-grid/lists"}