radiansToLength
Description
Convert a distance measurement (assuming a spherical Earth) from radians to a more friendly unit. Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet
Parameters
Name | Type | Description |
---|---|---|
radians | number | in radians across the sphere |
units? | string | can be degrees, radians, miles, inches, yards, metres, meters, kilometres, kilometers. (default "kilometers") |
Returns
number distance
Installation
$ npm install @turf/helpers
import { radiansToLength } from "@turf/helpers";
const result = radiansToLength(...);
$ npm install @turf/turf
import * as turf from "@turf/turf";
const result = turf.radiansToLength(...);