code: def gpgga_to_dms(gpgga):
      '''
      Convert GPS coordinate in GPGGA format to degree/minute/second
  
      Reference: http://us.cactii.net/~bb/gps.py
      '''
      deg_min, dmin = gpgga.split('.')
      degrees = int(deg_min[:-2])
      minutes = float('%s.%s' % (deg_min[-2:], dmin))
      decimal = degrees + (minutes / 60)
      return decimaf gpgga_to_dms(gpgga):
      '''
      Convert GPS coordinate in GPGGA format to degree/minute/second
  
      Reference: http://us.cactii.net/~bb/gps.py
      '''
      deg_min, dmin = gpgga.split('.')
      degrees = int(deg_min[:-2])
      minutes = float('%s.%s' % (deg_min[-2:], dmin))
      decimal = degrees + (minutes / 60)
      return decimal
docs: Convert GPS coordinate in GPGGA format to degree/minute/second
  
      Reference: http://us.cactii.net/~bb/gps.py