Atlaslog
Atlaslog / Turf.js / API / area
Turf.js · API reference

area

Quick answer

Calculates the geodesic area in square meters of one or more polygons.

Last verified 2026-11-03 · Turf.js 7.x · Cite this page
Runnable examplesChinese noteAll API topics

Description​

Calculates the geodesic area in square meters of one or more polygons.

Parameters​

NameTypeDescription
geojsonGeoJSONinput polygon(s) as Geometry, Feature, or FeatureCollection

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(...);
TutorialsAPI index
English reference text adapted from the official Turf.js documentation, © Turf.js contributors, licensed under MIT.
Original page: https://turfjs.org/docs/api/area · Chinese note: /turf/api/area.html
Cite this page

Atlaslog (2026). area. https://www.jingweizhi.com/en/turf/api/area.html (accessed 2026-11-03).