def get_locations_from_coords(self, longitude, latitude, levels=None):
resp = requests.get(SETTINGS['<STR_LIT:url>'] + '<STR_LIT>' % (longitude, latitude, SETTINGS['<STR_LIT>']))<EOL>resp.raise_for_status()<EOL>geos = []<EOL>for feature in resp.json().itervalues():<EOL><INDENT>try:<EOL><INDENT>geo = self.get_geography(feature['<STR_LIT>']['<STR_LIT>'],<EOL>feature['<STR_LIT>'].lower())<EOL>if not levels or geo.geo_level in levels:<EOL><INDENT>geos.append(geo)<EOL><DEDENT><DEDENT>except LocationNotFound as e:<EOL><INDENT>log.warn("<STR_LIT>" % feature, exc_info=e)<EOL><DEDENT><DEDENT>return geos<EOL>
Returns a list of geographies containing this point.