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

@turf/distance

Package Overview
Dependencies
Maintainers
6
Versions
57
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 6.3.0 to 6.4.0

6

dist/es/index.js
import { getCoord } from "@turf/invariant";
import { radiansToLength, degreesToRadians } from "@turf/helpers";
import { radiansToLength, degreesToRadians, } from "@turf/helpers";
//http://en.wikipedia.org/wiki/Haversine_formula

@@ -10,4 +10,4 @@ //http://www.movable-type.co.uk/scripts/latlong.html

* @name distance
* @param {Coord} from origin point
* @param {Coord} to destination point
* @param {Coord | Point} from origin point or coordinate
* @param {Coord | Point} to destination point or coordinate
* @param {Object} [options={}] Optional parameters

@@ -14,0 +14,0 @@ * @param {string} [options.units='kilometers'] can be degrees, radians, miles, or kilometers

@@ -1,2 +0,2 @@

import { Coord, Units } from "@turf/helpers";
import { Coord, Units, Point } from "@turf/helpers";
/**

@@ -7,4 +7,4 @@ * Calculates the distance between two {@link Point|points} in degrees, radians, miles, or kilometers.

* @name distance
* @param {Coord} from origin point
* @param {Coord} to destination point
* @param {Coord | Point} from origin point or coordinate
* @param {Coord | Point} to destination point or coordinate
* @param {Object} [options={}] Optional parameters

@@ -25,5 +25,5 @@ * @param {string} [options.units='kilometers'] can be degrees, radians, miles, or kilometers

*/
declare function distance(from: Coord, to: Coord, options?: {
declare function distance(from: Coord | Point, to: Coord | Point, options?: {
units?: Units;
}): number;
export default distance;

@@ -12,4 +12,4 @@ "use strict";

* @name distance
* @param {Coord} from origin point
* @param {Coord} to destination point
* @param {Coord | Point} from origin point or coordinate
* @param {Coord | Point} to destination point or coordinate
* @param {Object} [options={}] Optional parameters

@@ -16,0 +16,0 @@ * @param {string} [options.units='kilometers'] can be degrees, radians, miles, or kilometers

{
"name": "@turf/distance",
"version": "6.3.0",
"version": "6.4.0",
"description": "turf distance module",

@@ -59,6 +59,6 @@ "author": "Turf Authors",

"dependencies": {
"@turf/helpers": "^6.3.0",
"@turf/invariant": "^6.3.0"
"@turf/helpers": "^6.4.0",
"@turf/invariant": "^6.4.0"
},
"gitHead": "57c8877e1e2d67effc2cdd23385c02b2a6615a49"
"gitHead": "1e62773cfc88c627cca8effcb5c14cfb65a905ac"
}
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