Socket
Socket
Sign inDemoInstall

turf-destination

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-destination - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

5

index.js

@@ -9,2 +9,3 @@ //http://en.wikipedia.org/wiki/Haversine_formula

var latitude1 = toRad(coordinates1[1])
var bearing_rad = toRad(bearing)

@@ -28,4 +29,4 @@ var R = 0

var latitude2 = Math.asin(Math.sin(latitude1) * Math.cos(distance / R) +
Math.cos(latitude1) * Math.sin(distance / R) * Math.cos(bearing));
var longitude2 = longitude1 + Math.atan2(Math.sin(bearing) * Math.sin(distance / R) * Math.cos(latitude1),
Math.cos(latitude1) * Math.sin(distance / R) * Math.cos(bearing_rad));
var longitude2 = longitude1 + Math.atan2(Math.sin(bearing_rad) * Math.sin(distance / R) * Math.cos(latitude1),
Math.cos(distance / R) - Math.sin(latitude1) * Math.sin(latitude2));

@@ -32,0 +33,0 @@

2

package.json
{
"name": "turf-destination",
"version": "0.0.3",
"version": "0.0.4",
"description": "turf destination module",

@@ -5,0 +5,0 @@ "main": "index.js",

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