Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1002 Bytes

README.md

File metadata and controls

51 lines (32 loc) · 1002 Bytes

turf-voronoi

build status

turf voronoi module

turf.voronoi(points)

Under Development - Not ready for use! Takes a set of Point|points and creates Voronoi Polygons, returned as a collection of Polygons. These are often used for partitioning in to regions called Voronoi cells.

Parameters

parameter type description
points FeatureCollection.<Point> input points

Example

// generate some random point data
var points = turf.random('points', 30, {
  bbox: [50, 30, 70, 50]
});
var voronoi = turf.voronoi(points);
//=voronoi

Returns FeatureCollection.<Polygon>, Voronoi output

Installation

Requires nodejs.

$ npm install turf-voronoi

Tests

$ npm test