包详细信息

turf-helpers

Turfjs89kMIT不推荐使用3.0.12

Turf packages are now namespaced: please use @turf/helpers instead

turf geometries

geo, point, turf, geojson

自述文件

turf-point

build status

turf point module

turf.point(coordinates, properties)

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

Parameters

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

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

更新日志

2.0.0

  • Only accept [x, y] arrays, not as arguments