Skip to main content
Version: Next

bearingToAzimuth

Description

Converts any bearing angle from the north line direction (positive clockwise) and returns an angle between 0-360 degrees (positive clockwise), 0 being the north line

Parameters

NameTypeDescription
bearingnumberangle, between -180 and +180 degrees

Returns

    number angle between 0 and 360 degrees

Installation

$ npm install @turf/helpers

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

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