encoder/lib/GG-NmeaDecode.js
function(lat){
        // TK103 sample 4737.1024,N for 47°37'.1024
        var deg= parseInt (lat[0]/100) || 0;
        var min= lat[0] - (deg*100);
        var dec= deg + (min/60);
    
        if (lat [1] === 'S' || lat [1] === 'W') dec= dec * -1;
        return (dec);
    }
function(lat){
        // TK103 sample 4737.1024,N for 47°37'.1024
        var deg= parseInt (lat[0]/100) || 0;
        var min= lat[0] - (deg*100);
        var dec= deg + (min/60);
    
        if (lat [1] === 'S' || lat [1] === 'W') dec= dec * -1;
        return (dec);
    }
function ( lat ) { // TK103 sample 4737.1024,N for 47°37'.1024 var deg = parseInt ( lat [ 0 ] / 100 ) || 0 ; var min = lat [ 0 ] - ( deg * 100 ) ; var dec = deg + ( min / 60 ) ; if ( lat [ 1 ] === 'S' || lat [ 1 ] === 'W' ) dec = dec * - 1 ; return ( dec ) ; }
Convert gps coordonnates in decimal
Convert gps coordonnates in decimal