Search code examples
google-mapsgeolocationgps

GPS tracker coordinate conversion into google maps format and preciseness


I own gps tracker that send latitude and longitude to my server, as it is described in gps tracker manual(example for Latitude, for Longitude the same):

xxmm.dddd, where
xx = degrees;
mm = minutes;
dddd = decimal part of minutes; for example 11 deg. 26.6639 min.

I`d like to convert received coordinates into google maps format, for this purpuse I am using formula:

result = xx + (mm.dddd)/60

since, there is a division result could be presented as periodically fraction, for example - 1.6666(6), but it is very bad cause I am loosing so much of GPS preciness.

Questions

  1. What is the name of format I am receiving coordinates?
  2. What is the name of format that google maps are using?
  3. What is the best formula to conversate received gps locations into google maps format?

Solution

    1. degrees, minutes, seconds
    2. decimal degrees
    3. decimal degrees = degrees + (minutes/60) + (seconds/3600)