Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@turf/bearing

Package Overview
Dependencies
Maintainers
4
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/bearing - npm Package Compare versions

Comparing version 3.13.0 to 3.14.0

4

index.js

@@ -13,2 +13,3 @@ var getCoord = require('@turf/invariant').getCoord;

* @returns {number} bearing in decimal degrees
* @addToMap point1, point2
* @example

@@ -37,2 +38,3 @@ * var point1 = {

* var bearing = turf.bearing(point1, point2);
* point1.properties.bearing = bearing
* //=bearing

@@ -63,3 +65,3 @@ */

* Calculates Final Bearing
*
* @private
* @param {Feature<Point>} start starting Point

@@ -66,0 +68,0 @@ * @param {Feature<Point>} end ending Point

{
"name": "@turf/bearing",
"version": "3.13.0",
"version": "3.14.0",
"description": "turf bearing module",

@@ -30,3 +30,3 @@ "main": "index.js",

"devDependencies": {
"@turf/destination": "^3.13.0",
"@turf/destination": "^3.14.0",
"@turf/helpers": "^3.13.0",

@@ -33,0 +33,0 @@ "benchmark": "^1.0.0",

@@ -38,2 +38,3 @@ # @turf/bearing

var bearing = turf.bearing(point1, point2);
point1.properties.bearing = bearing
//=bearing

@@ -44,13 +45,2 @@ ```

# calculateFinalBearing
Calculates Final Bearing
**Parameters**
- `start` **[Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;[Point](http://geojson.org/geojson-spec.html#point)>** starting Point
- `end` **[Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;[Point](http://geojson.org/geojson-spec.html#point)>** ending Point
Returns **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** bearing
<!-- This file is automatically generated. Please don't edit it directly:

@@ -57,0 +47,0 @@ if you find an error, edit the source file (likely index.js), and re-run

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc