def get(self, key):
if isinstance(key, tuple):<EOL><INDENT>try:<EOL><INDENT>x, y = float(key[<NUM_LIT:0>]), float(key[<NUM_LIT:1>])<EOL><DEDENT>except IndexError:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>except ValueError:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>key = "<STR_LIT>".format(x, y)<EOL><DEDENT>return self[self.lookups[key]]<EOL>
Returns an individual Location by query lookup, e.g. address or point.