# [Solved]What is the applied factor to the latitude and logitude in Sodaq One v2 tracker?

Hello,

I am using the GPS coordinates given by the GPS module in the Sodaq One v2, checking the ouput of that is retrieved from the GPS module

`[DEBUG GPS] DATA 2018-06-19 12:14:17.207004 valid=37 lat=523716353 lon=49005602 sats=5 fixType=03`

I see that the lattitude and longitude seem to be multiplied by some factor in order to make it integer(int32_t), I am assuming that is 1e6, whihI would like to know, in order to convert them to DMS.

So, could you confirm me whether these operations are the right ones?

factor = 1e6
523716353 = lat = realLatt * factor => realLatt = 523.716353 => 52°3.716353’’
49005602 = lon = realLong * factor => realLong =49.005602 => 49°0.005602’’

Checking u-blox 7 Receiver Description Including Protocol Specification V14 on section 20 Latitude and Longitude Format, I could see that for GLL the values have to be divided always by factor=1e7.

Hence my example would be

factor = 1e7
523716353 = lat = realLatt * factor => realLatt = 52.3716353 => 52°3.716353’’
49005602 = lon = realLong * factor => realLong =4.9005602 => 4°9.005602’’

Regards

1 Like

Just keep in mind that it is decimal degrees not degrees/minutes/seconds.

So 49005602 = 4.9005602° not 4° 9.005602"