@turf/distance
Advanced tools
Comparing version 6.3.0 to 6.4.0
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" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
9294
1
Updated@turf/helpers@^6.4.0
Updated@turf/invariant@^6.4.0