Lat, long calculation at traccar side

Jon smith 7 years ago

Dear Anton,

Here is the hex code and database values for one of my vehicle

Lat, long from database is : 21.7754816667, 73.0027400000 respectively

Decoded Hex String

081662935700BR00181014A2146.5285N07300.1703E000.0193304101.9300000000L0006ED93		

here I am able to see the location : 2146.5285N07300.1703E

How traccar is computing the latitude, longitude for same from above mentioned value ?

I just want to compare location of database and shared by device for my debugging purpose.

Anton Tananaev 7 years ago

Well, your device sends degrees and minutes. Let's take latitude for example:

21 degrees and 46.5285 minutes = 21 + 46.5285 / 60 = 21.7754816667 degrees

Jon smith 7 years ago

Thanks Anton for the calculation, truly appreciate this.