How to convert my binary (hex) data to latitude and longitude?

前端 未结 3 822
伪装坚强ぢ
伪装坚强ぢ 2021-01-06 01:41

I have some binary data stream which passes geo location coordinates - latitude and longitude. I need to find the method they are encoded.

4adac812 = 74°26.2         


        
3条回答
  •  长发绾君心
    2021-01-06 02:48

    I have tried your new data packets:

    74+40.1463/60 74+26.3003/60 74+26.2851/60 42+56.3177/60 43+0.2763/60 42+59.6263/60

    74.66910, 74.43834, 74.43809, 42.93863, 43.00460, 42.99377
    

    My program gives:

    74.668392, 74.439881, 74.437368, 42.961388, 42.993224, 39.407346
    

    The differences are:

    -0.000708,  0.001541,  -0.000722,  0.022758, -0.011376, -3.586424
    

    I re-used the 4 constants i derived from your first packet as those are probably stored in your client somewhere. The slight differences might be the result of some randomization the client does to prevent you from getting the exact value or reverse-engineering their protocol.

提交回复
热议问题