Comparing version 2.0.23 to 2.0.24
@@ -195,3 +195,3 @@ // Type definitions for geolib v2.0.22 | ||
*/ | ||
function convertUnit(unit: string, distance: number) | ||
function convertUnit(unit: string, distance: number): number; | ||
@@ -211,3 +211,3 @@ | ||
*/ | ||
function convertUnit(unit: string, distance: number, round: number); | ||
function convertUnit(unit: string, distance: number, round: number): number; | ||
@@ -262,2 +262,2 @@ | ||
export = geolib; | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
/*! geolib.elevation 2.0.21 by Manuel Bieh | ||
/*! geolib.elevation 2.0.23 by Manuel Bieh | ||
* | ||
@@ -7,3 +7,3 @@ * Elevation Addon for Geolib.js | ||
* @url http://www.manuelbieh.com/ | ||
* @version 2.0.21 | ||
* @version 2.0.23 | ||
* @license MIT | ||
@@ -10,0 +10,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
/*! geolib 2.0.21 by Manuel Bieh | ||
/*! geolib 2.0.23 by Manuel Bieh | ||
* Library to provide geo functions like distance calculation, | ||
@@ -8,3 +8,3 @@ * conversion of decimal coordinates to sexagesimal and vice versa, etc. | ||
* @url http://www.manuelbieh.com/ | ||
* @version 2.0.21 | ||
* @version 2.0.23 | ||
* @license MIT | ||
@@ -26,3 +26,3 @@ **/;(function(global, undefined) { | ||
version: { | ||
value: "2.0.21" | ||
value: "2.0.23" | ||
}, | ||
@@ -946,15 +946,10 @@ radius: { | ||
var coordsArray = []; | ||
for(var coord in coords) { | ||
var distance = this.getDistance(latlng, coords[coord]); | ||
var augmentedCoord = Object.create(coords[coord]); | ||
var coordsArray = Object.keys(coords).map(function(idx) { | ||
var distance = this.getDistance(latlng, coords[idx]); | ||
var augmentedCoord = Object.create(coords[idx]); | ||
augmentedCoord.distance = distance; | ||
augmentedCoord.key = coord; | ||
augmentedCoord.key = idx; | ||
return augmentedCoord; | ||
}, this); | ||
coordsArray.push(augmentedCoord); | ||
} | ||
return coordsArray.sort(function(a, b) { | ||
@@ -961,0 +956,0 @@ return a.distance - b.distance; |
@@ -56,7 +56,8 @@ { | ||
"test": "grunt travis --verbose", | ||
"build": "grunt build" | ||
"build": "grunt build", | ||
"preversion": "npm run build" | ||
}, | ||
"version": "2.0.23", | ||
"version": "2.0.24", | ||
"typings": "dist/geolib.d.ts", | ||
"main": "dist/geolib.js" | ||
} |
@@ -398,3 +398,3 @@ # Geolib | ||
<h2>Changelog</h2> | ||
<h3>v2.0.0+beta1</h3> | ||
<h3>v2.0.23+beta1</h3> | ||
- Dropped support for IE6, IE7, IE8 | ||
@@ -401,0 +401,0 @@ - Added new methods `geolib.latitude()`, `geolib.longitude()`, `geolib.elevation()` to get latitude, longitude or elevation of points. Will be converted to decimal format automatically |
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
77282