geojson-area

calculate the physical area of a geojson geometry

npm install geojson-area
9 downloads in the last day
48 downloads in the last week
181 downloads in the last month

Build Status

geojson-area

Calculate the area inside of a GeoJSON Polygon.

usage

npm install geojson-area

example

var geojsonArea = require('geojson-area');

var area = geojsonArea.geometry(obj);

api

geojsonArea.geometry(obj)

Given a Geometry object of type Polygon or MultiPolygon, return contained area as square meters. Invalid input will return null.

Adapted from OpenLayers

npm loves you