Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbieh committed Apr 16, 2014
1 parent 7c079d0 commit 9e63847
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# Geolib v2.0.4+beta1
# Geolib v2.0.5+beta1
[![Build Status](https://secure.travis-ci.org/manuelbieh/Geolib.png?branch=master)](http://travis-ci.org/manuelbieh/Geolib)

Library to provide basic geospatial operations like distance calculation, conversion of decimal coordinates to sexagesimal and vice versa, etc.
Expand Down
8 changes: 6 additions & 2 deletions component.json
Expand Up @@ -40,11 +40,15 @@
"keywords": [
"geolocation",
"geo",
"distance"
"distance",
"geojson",
"geospatial",
"lbs",
"location"
],
"scripts": {
"test": "grunt travis --verbose"
},
"version": "2.0.4+beta-1",
"version": "2.0.5+beta-1",
"main": "./geolib"
}
2 changes: 1 addition & 1 deletion dist/geolib.elevation.js
@@ -1,4 +1,4 @@
/*! geolib.elevation 2.0.4+beta-1 by Manuel Bieh
/*! geolib.elevation 2.0.5+beta-1 by Manuel Bieh
*
* Elevation Addon for Geolib.js
*
Expand Down
2 changes: 1 addition & 1 deletion dist/geolib.elevation.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions dist/geolib.js
@@ -1,11 +1,11 @@
/*! geolib 2.0.4+beta-1 by Manuel Bieh
/*! geolib 2.0.5+beta-1 by Manuel Bieh
* Library to provide geo functions like distance calculation,
* conversion of decimal coordinates to sexagesimal and vice versa, etc.
* WGS 84 (World Geodetic System 1984)
*
* @author Manuel Bieh
* @url http://www.manuelbieh.com/
* @version 2.0.4+beta-1
* @version 2.0.5+beta-1
* @license MIT
**/;(function(global, undefined) {

Expand All @@ -16,7 +16,7 @@
// Setting readonly defaults
var geolib = Object.create(Geolib.prototype, {
version: {
value: "2.0.4+beta-1"
value: "2.0.5+beta-1"
},
radius: {
value: 6378137
Expand Down Expand Up @@ -432,8 +432,8 @@
var maxLat = max(splitCoords.latitude);
var maxLon = max(splitCoords.longitude);

latitude = ((minLat + maxLat)/2).toFixed(6);
longitude = ((minLng + maxLng)/2).toFixed(6);
latitude = ((minLat + maxLon)/2).toFixed(6);
longitude = ((minLng + maxLon)/2).toFixed(6);

// distance from the deepest left to the highest right point (diagonal distance)
var distance = this.convertUnit('km', this.getDistance({latitude: minLat, longitude: minLon}, {latitude: maxLat, longitude: maxLon}));
Expand Down
6 changes: 3 additions & 3 deletions dist/geolib.min.js

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions package.json
Expand Up @@ -38,11 +38,17 @@
],
"description": "Library to perform geo specific tasks",
"keywords": [
"geolocation", "geo", "distance", "geojson", "geospatial", "lbs", "location"
"geolocation",
"geo",
"distance",
"geojson",
"geospatial",
"lbs",
"location"
],
"scripts": {
"test": "grunt travis --verbose"
},
"version": "2.0.4+beta-1",
"version": "2.0.5+beta-1",
"main": "./geolib"
}
4 changes: 2 additions & 2 deletions src/geolib.js
Expand Up @@ -423,8 +423,8 @@
var maxLat = max(splitCoords.latitude);
var maxLon = max(splitCoords.longitude);

latitude = ((minLat + maxLat)/2).toFixed(6);
longitude = ((minLng + maxLng)/2).toFixed(6);
latitude = ((minLat + maxLon)/2).toFixed(6);
longitude = ((minLng + maxLon)/2).toFixed(6);

// distance from the deepest left to the highest right point (diagonal distance)
var distance = this.convertUnit('km', this.getDistance({latitude: minLat, longitude: minLon}, {latitude: maxLat, longitude: maxLon}));
Expand Down

0 comments on commit 9e63847

Please sign in to comment.