npm install turf-grid
turf grid module
Takes a bounding box and a cell depth and returns a FeatureCollection of Point features in a grid.
| parameter | type | description |
| --------- | -------------- | ---------------------------------------- |
| extent | Array.
| depth | Number | how many cells to output |
``js
var extent = [-70.823364, -33.553984, -70.473175, -33.302986];
var depth = 10;
var grid = turf.grid(extent, depth);
//=grid
`
Requires nodejs.
`sh`
$ npm install turf-grid
`sh``
$ npm test