code: def extract_geo(self):
          '''
          Extract geo-related information from exif
          '''
          altitude = self.extract_altitude()
          dop = self.extract_dop()
          lon, lat = self.extract_lon_lat()
          d = {}
          if lon is not None and lat is not None:
              d['latitude'] = lat
              d['longitude'] = lon
          if altitude is not None:
              d['altitude'] = altitude
          if dop is not None:
              d['dop'] = dop
          return f extract_geo(self):
          '''
          Extract geo-related information from exif
          '''
          altitude = self.extract_altitude()
          dop = self.extract_dop()
          lon, lat = self.extract_lon_lat()
          d = {}
          if lon is not None and lat is not None:
              d['latitude'] = lat
              d['longitude'] = lon
          if altitude is not None:
              d['altitude'] = altitude
          if dop is not None:
              d['dop'] = dop
          return d
docs: Extract geo-related information from exif