Skip to main content
Version: 7.2.0

convertArea

Description

Converts an area from one unit to another.

Parameters

NameTypeDescription
areanumberArea to be converted
originalUnit?AreaUnitsInput area unit (default "meters")
finalUnit?AreaUnitsReturned area unit (default "kilometers")

Returns

number The converted length

Installation

$ npm install @turf/helpers

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

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