code: def init(self):
          '''
          Use the location_code to perform a geolookup and find the closest
          station. If the location is a pws or icao station ID, no lookup will be
          peformed.
          '''
          try:
              for no_lookup in ('pws', 'icao'):
                  sid = self.location_code.partition(no_lookup + ':')[-1]
                  if sid:
                      self.station_id = self.location_code
                      return
          except AttributeError:
              # Numeric or some other type, either way we'll just stringify
              # it below and perform a lookup.
              pass
  
          self.get_station_id(f init(self):
          '''
          Use the location_code to perform a geolookup and find the closest
          station. If the location is a pws or icao station ID, no lookup will be
          peformed.
          '''
          try:
              for no_lookup in ('pws', 'icao'):
                  sid = self.location_code.partition(no_lookup + ':')[-1]
                  if sid:
                      self.station_id = self.location_code
                      return
          except AttributeError:
              # Numeric or some other type, either way we'll just stringify
              # it below and perform a lookup.
              pass
  
          self.get_station_id()
docs: Use the location_code to perform a geolookup and find the closest
          station. If the location is a pws or icao station ID, no lookup will be
          peformed.