# @mapbox/geojson-area

> calculate the physical area of a geojson geometry

Latest version **0.2.2** (published 2016-12-19) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install @mapbox/geojson-area
pnpm add @mapbox/geojson-area
yarn add @mapbox/geojson-area
bun add @mapbox/geojson-area
```

## Health

**Score 33/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2016-12-19 |
| First published | 2016-12-02 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | separate (@types/mapbox__geojson-area) |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 124 |
| Author | Tom MacWright |
| Maintainers | aaronlidman, aarthykc, ajashton, ajithranka, aliceykuo, alinapaz, alulsh, amishas157, amyleew, andreasviglakis, ansis, apendleton, arunasank, batpad, benjamintd, bhousel, bkowshik, brendanmcfarland, bsudekum, camillacaros, camilleanne, captainbarbosa, chaupow, colleenmcginnis, danieljh, danpat, danswick, dasulit, davidtheclark, dnomadb, dthompson, emilymcafee, emilymdubois, enf, freenerd, geohacker, ghoshkaj, gretacb, ian29, ianshward, ingalls, isiyu, jacquestardie, jfirebaugh, jothirnadh, jrpruit1, k-mahoney, kaibot3000, kaidalgleish, karenzshea, karitotp, katydecorah, kkaefer, l-r, laurier, lbud, lily-chai, lucaswoj, lxbarth, lyzidiamond, maning, mapbox-admin, mapsam, mateov, mattficke, mayaqgao, mcwhittemore, miccolis, miles-dev, mokob, mollymerp, morganherlocker, mourner, msirenko, natslaughter, nickcordella, nickidlugash, oini, oxidase, pdgoodman, perrygeo, planemad, pratikyadav, rclark, rodowi, rub21, rumc, ryan-baumann, saikia.abhishek, samanbb, sbma44, scothis, springmeyer, srividyacb, tcql, themarex, tmcw, tony-cj, tristen, uvollmer, vincents, virginiayung, who8mycakes, willwhite, xrwang, yhahn, zmully |
| Keywords | geojson, area, geodesy |

## Links

- npm: https://www.npmjs.com/package/@mapbox/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/@mapbox/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.2 (latest) — 2016-12-19
- 0.2.1 — 2016-12-02

## 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 @mapbox/geojson-area

## example

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

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