Skip to main content
Version: 6.5.0

area

Description

Takes one or more features and returns their area in square meters.

Parameters

NameTypeDescription
geojsonGeoJSONinput GeoJSON feature(s)

Returns

    number area in square meters

Examples

var polygon = turf.polygon([
[
[125, -15],
[113, -22],
[154, -27],
[144, -15],
[125, -15],
],
]);

var area = turf.area(polygon);

Installation

$ npm install @turf/area

import { area } from "@turf/area";
const result = area(...);
$ npm install @turf/turf

import * as turf from "@turf/turf";
const result = turf.area(...);