3.0.12 • Published 8 years ago
turf-midpoint v3.0.12
turf-midpoint
turf midpoint module
turf.midpoint(a, b)
Takes two point features and returns a point between the two.
Parameters
parameter | type | description |
---|---|---|
a | Point | |
b | Point |
Example
var pt1 = turf.point([0,0]);
var pt2 = turf.point([10, 0]);
var midpointed = turf.midpoint(pt1, pt2);
var features = turf.featurecollection([
pt1, pt2, midpointed]);
//=features
Installation
Requires nodejs.
$ npm install turf-midpoint
Tests
$ npm test
3.0.12
8 years ago
3.0.10
9 years ago
3.0.7-canary.ae89c8b3
9 years ago
3.0.1
9 years ago
3.0.0-canary.7879bf6c
9 years ago
3.0.0-canary.2f5f7167
9 years ago
1.0.1
10 years ago
1.0.0
10 years ago
0.1.3
10 years ago
0.1.2
11 years ago
0.1.1
11 years ago
0.1.0
11 years ago