title: Convert GPS data to latitude and longitude c#
body: <p>I have a GPS device(gt003) which sends data to my server, I need to convert the <strong>01E0598A 0869058A</strong> values that the device sends into latitude and longitude.</p>
  
  <p>Latitude</p>
  
  <p>Occupy 4 bytes, representing the latitude value. </p>
  
  <p>Number range is from 0 to 162000000, which represents the range form 0°to 90°. Unit: 1/500 second Conversion method:</p>
  
  <p>A) Convert the latitude (degrees, minutes) data from GPS module into a new form which represents the value only in minutes; </p>
  
  <p>B Multiply the converted value by 30000, and then transform the result to hexadecimal number</p>
  
  <p>For example22°32.7658′,（22×60＋32.7658）×30000=40582974, then convert it to hexadecimal number 0x02 0x6B 0x3F 0x3E</p>
  
  <p>Longitude</p>
  
  <p>Occupy 4 bytes, representing the longitude value of location data. Number ranges from 0 to 324000000, representing the range form 0°to 180°.Unit: 1/500 seconds, Conversion method is the same as latitude’s.</p>
  
  <p>Expected output close to <strong>17°29'20.2"N 78°23'21.7"E</strong></p>