code: def resolve(self, geoid, id_only=False):
          '''
          Resolve a GeoZone given a GeoID.
  
          The start date is resolved from the given GeoID,
          ie. it find there is a zone valid a the geoid validity,
          resolve the `latest` alias
          or use `latest` when no validity is given.
  
          If `id_only` is True,
          the result will be the resolved GeoID
          instead of the resolved zone.
          '''
          level, code, validity = geoids.parse(geoid)
          qs = self(level=level, code=code)
          if id_only:
              qs = qs.only('id')
          if validity == 'latest':
              result = qs.latest()
          else:
              result = qs.valid_at(validity).first()
          return result.id if id_only and result else resulf resolve(self, geoid, id_only=False):
          '''
          Resolve a GeoZone given a GeoID.
  
          The start date is resolved from the given GeoID,
          ie. it find there is a zone valid a the geoid validity,
          resolve the `latest` alias
          or use `latest` when no validity is given.
  
          If `id_only` is True,
          the result will be the resolved GeoID
          instead of the resolved zone.
          '''
          level, code, validity = geoids.parse(geoid)
          qs = self(level=level, code=code)
          if id_only:
              qs = qs.only('id')
          if validity == 'latest':
              result = qs.latest()
          else:
              result = qs.valid_at(validity).first()
          return result.id if id_only and result else result
docs: Resolve a GeoZone given a GeoID.
  
          The start date is resolved from the given GeoID,
          ie. it find there is a zone valid a the geoid validity,
          resolve the `latest` alias
          or use `latest` when no validity is given.
  
          If `id_only` is True,
          the result will be the resolved GeoID
          instead of the resolved zone.