1.0.0 • Published 7 years ago
geo-area v1.0.0
geo-area
convex hull 2D algorithm using monotone chain algorithm
usage
const geoarea = require('geo-area')(/*options*/{x: 'lng', y: 'lat'});
const polygon = [
{
lng: 121.409058,
lat: 31.191149
},
...
];
let area = geoarea(polygon);
Options
option | desc | default |
---|---|---|
x | property key x | 'longitude' |
y | property key y | 'latitude' |
1.0.0
7 years ago