turf-distance
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -10,4 +10,4 @@ //http://en.wikipedia.org/wiki/Haversine_formula | ||
var dLon = toRad(coordinates2[0] - coordinates1[0]) | ||
var lat1 = toRad(coordinates1[0]) | ||
var lat2 = toRad(coordinates2[0]) | ||
var lat1 = toRad(coordinates1[1]) | ||
var lat2 = toRad(coordinates2[1]) | ||
var a = Math.sin(dLat/2) * Math.sin(dLat/2) + | ||
@@ -14,0 +14,0 @@ Math.sin(dLon/2) * Math.sin(dLon/2) * Math.cos(lat1) * Math.cos(lat2) |
{ | ||
"name": "turf-distance", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "turf distance 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