convertArea
Description
Converts an area from one unit to another.
Parameters
Name | Type | Description |
---|---|---|
area | number | Area to be converted |
originalUnit? | AreaUnits | Input area unit (default "meters") |
finalUnit? | AreaUnits | Returned 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(...);