2.0.1 • Published 9 years ago

turf-point v2.0.1

Weekly downloads
13,300
License
MIT
Repository
github
Last release
9 years ago

turf-point

build status

turf point module

turf.point(longitude, latitude, properties)

Generates a new Point feature, given coordinates and, optionally, properties.

Parameters

parametertypedescription
longitudenumber- position west to east in decimal degrees
latitudenumber- position south to north in decimal degrees
propertiesObject- an optional object that is used as the Feature's properties

Example

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

Installation

Requires nodejs.

$ npm install turf-point

Tests

$ npm test