turf point module
Takes coordinates and properties (optional) and returns a new Point feature.
| parameter | type | description |
|---|---|---|
coordinates |
Array.<Number> | longitude, latitude position (each in decimal degrees) |
properties |
Object | optional: an Object that is used as the Feature's properties |
var pt1 = turf.point([-75.343, 39.984]);
//=pt1Returns Feature.<Point>, a Point feature
Requires nodejs.
$ npm install turf-point$ npm test