1.0.0 • Published 8 years ago

turf-geometries v1.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

turf-point

build status

turf point module

turf.point(coordinates, properties)

Takes coordinates and properties (optional) and returns a new Point feature.

Parameters

parametertypedescription
coordinatesArray.\<Number>longitude, latitude position (each in decimal degrees)
propertiesObjectoptional: an Object that is used as the Feature's properties

Example

var pt1 = turf.point([-75.343, 39.984]);

//=pt1

Returns Feature.<Point>, a Point feature

Installation

Requires nodejs.

$ npm install turf-point

Tests

$ npm test