Comparing version 1.3.1 to 1.3.4
@@ -1,2 +0,2 @@ | ||
/*! geolib 1.3.1 by Manuel Bieh | ||
/*! geolib 1.3.4 by Manuel Bieh | ||
* A growing library to provide some basic 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 1.3.1 | ||
* @version 1.3.4 | ||
* @license LGPL | ||
@@ -336,2 +336,3 @@ **//*global console:true geolib:true require:true module:true window:true global:true define:true*/ | ||
getBounds: function(coords) { | ||
if (!coords.length) { | ||
@@ -651,2 +652,3 @@ return false; | ||
direction['bearing'] = bearing; | ||
return direction; | ||
@@ -656,2 +658,8 @@ | ||
/** | ||
* Shortcut for getCompassDirection | ||
*/ | ||
getDirection: function(originLL, destLL, bearingMode) { | ||
return geolib.getCompassDirection.apply(geolib, arguments); | ||
}, | ||
@@ -794,3 +802,3 @@ /** | ||
// checks if value is in decimal format | ||
if (!isNaN(parseFloat(value)) && parseFloat(value).toString() == value) { | ||
if (!isNaN(parseFloat(value)) && parseFloat(value) == value) { | ||
return parseFloat(value); | ||
@@ -797,0 +805,0 @@ // checks if it's sexagesimal format (HHH° MM' SS" (NESW)) |
@@ -46,4 +46,4 @@ { | ||
}, | ||
"version": "1.3.1", | ||
"version": "1.3.4", | ||
"main": "./geolib" | ||
} |
37988
877