Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

geojson-area

mapbox86kBSD-2-Clausedeprecated0.2.1

This module is now under the @mapbox namespace: install @mapbox/geojson-area instead

calculate the physical area of a geojson geometry

geojson, area, geodesy

readme

Build Status

geojson-area

Calculate the area inside of any GeoJSON geometry.

usage

npm install geojson-area

example

var geojsonArea = require('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