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

turf-distance

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-distance - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

4

index.js

@@ -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",

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