The Latitude and Longitude are embedded in the Payload (Payload HEX)
Latitude: Byte[8]-Byte[10], for instance: 4a0d76
Longitude: Byte[11]-Byte[13], for instance: 031845
To convert the HEX values into usable coordinates you can use the following calculation:
Convert HEX to Decimal.
LAT: 4a0d76 => 4853110
LONG: 031845 => 202821
To convert the decimal value into a usable coordinate you can use the following calculations for the Latitude and Longitude
Latitude: LAT * (90 / 2^23)
For instance: 4853110 * ( 90 / 2^23) = 52,068221569066 =/= 52,068222
Longitude: LONG * (180 / 2^23)
For instance: 202821 * (180 / 2^23) = 4,3520665168762 =/= 4,352067
Now you have the coordinates, which can be used by for instance Google Maps.
Beste antwoord door Remco_Dekkinga
Bekijk origineel