turf-destination
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -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 @@ |
{ | ||
"name": "turf-destination", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "turf destination module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4702
49