def init(self):
try:<EOL><INDENT>for no_lookup in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>sid = self.location_code.partition(no_lookup + '<STR_LIT::>')[-<NUM_LIT:1>]<EOL>if sid:<EOL><INDENT>self.station_id = self.location_code<EOL>return<EOL><DEDENT><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>self.get_station_id()<EOL>
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.