# geojson-area

> calculate the physical area of a geojson geometry

Latest version **0.2.1** (published 2015-11-12) · BSD-2-Clause license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install geojson-area
pnpm add geojson-area
yarn add geojson-area
bun add geojson-area
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2015-11-12 |
| First published | 2013-12-12 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 124 |
| Author | Tom MacWright |
| Maintainers | tmcw, edenh, sgillies, lbud, bsudekum, dnomadb, ian29, dvncan, nickidlugash, samanbb, ajashton, lxbarth, mikemorris, ianshward, mourner, tristen, ingalls, ansis, jfirebaugh, miccolis, gretacb, aaronlidman, morganherlocker, camilleanne, rclark, mapbox, willwhite, springmeyer, kkaefer, dthompson, yhahn |
| Keywords | geojson, area, geodesy |

## Links

- npm: https://www.npmjs.com/package/geojson-area
- Repository: https://github.com/mapbox/geojson-area
- Homepage: https://github.com/mapbox/geojson-area#readme
- Issues: https://github.com/mapbox/geojson-area/issues
- npm.io page: https://npm.io/package/geojson-area

## Dependencies (1)

- [wgs84](https://npm.io/package/wgs84.md) 0.0.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.2.1 (latest) — 2015-11-12
- 0.2.0 — 2015-01-13
- 0.1.0 — 2013-12-16
- 0.0.1 — 2013-12-12

## README

[![Build Status](https://travis-ci.org/mapbox/geojson-area.png)](https://travis-ci.org/mapbox/geojson-area)

# geojson-area

Calculate the area inside of any [GeoJSON](http://geojson.org/) geometry.

## usage

    npm install geojson-area

## example

```js
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](http://openlayers.org/)

---
_Source: https://npm.io/package/geojson-area · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
