public/javascripts/vendor/javascripts/geolib.js
function(dec) {

			if (dec in geolib.sexagesimal) {
				return geolib.sexagesimal[dec];
			}

			var tmp = dec.toString().split('.');

			var deg = Math.abs(tmp[0]);
			var min = ('0.' + tmp[1])*60;
			var sec = min.toString().split('.');

			min = Math.floor(min);
			sec = (('0.' + sec[1]) * 60).toFixed(2);

			geolib.sexagesimal[dec] = (deg + '° ' + min + "' " + sec + '"');

			return geolib.sexagesimal[dec];

		}
function(dec) {

			if (dec in geolib.sexagesimal) {
				return geolib.sexagesimal[dec];
			}

			var tmp = dec.toString().split('.');

			var deg = Math.abs(tmp[0]);
			var min = ('0.' + tmp[1])*60;
			var sec = min.toString().split('.');

			min = Math.floor(min);
			sec = (('0.' + sec[1]) * 60).toFixed(2);

			geolib.sexagesimal[dec] = (deg + '° ' + min + "' " + sec + '"');

			return geolib.sexagesimal[dec];

		}
function ( dec ) { if ( dec in geolib . sexagesimal ) { return geolib . sexagesimal [ dec ] ; } var tmp = dec . toString ( ) . split ( '.' ) ; var deg = Math . abs ( tmp [ 0 ] ) ; var min = ( '0.' + tmp [ 1 ] ) * 60 ; var sec = min . toString ( ) . split ( '.' ) ; min = Math . floor ( min ) ; sec = ( ( '0.' + sec [ 1 ] ) * 60 ) . toFixed ( 2 ) ; geolib . sexagesimal [ dec ] = ( deg + '° '  in  ' "  ec  "') ; return geolib . sexagesimal [ dec ] ; }
Converts a decimal coordinate value to sexagesimal format

@param		float		decimal
@return		string		Sexagesimal value (XX° YY' ZZ")
Converts a decimal coordinate value to sexagesimal format