Skip to main content
Version: 7.1.0

azimuthToBearing

Description

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

Parameters

NameTypeDescription
anglenumberbetween 0 and 360 degrees

Returns

    number bearing between -180 and +180 degrees

Installation

$ npm install @turf/helpers

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

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