@mapbox/geojson-area

calculate the physical area of a geojson geometry

Stats

StarsIssuesVersionUpdatedCreatedSize
@mapbox/geojson-area
10150.2.25 years ago5 years agoMinified + gzip package size for @mapbox/geojson-area in KB

Readme

Build Status

geojson-area

Calculate the area inside of any GeoJSON geometry.

usage

npm install @mapbox/geojson-area

example

var geojsonArea = require('@mapbox/geojson-area');

var area = geojsonArea.geometry(obj);

api

geojsonArea.geometry(obj)

Given a Geometry object, return contained area as square meters. Invalid input will return null.

Adapted from OpenLayers

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.