def get_geometry(self, geo_level, geo_code):
mapit_level = SETTINGS['<STR_LIT>'][geo_level]<EOL>url = SETTINGS['<STR_LIT:url>'] + '<STR_LIT>' % (geo_code, mapit_level)<EOL>url = url + '<STR_LIT>' % SETTINGS['<STR_LIT>']<EOL>simplify = SETTINGS['<STR_LIT>'].get(mapit_level)<EOL>if simplify:<EOL><INDENT>url = url + '<STR_LIT>' % simplify<EOL><DEDENT>resp = requests.get(url)<EOL>if resp.status_code == <NUM_LIT>:<EOL><INDENT>return None<EOL><DEDENT>resp.raise_for_status()<EOL>feature = resp.json()<EOL>shape = asShape(feature['<STR_LIT>'])<EOL>return {<EOL>'<STR_LIT>': feature['<STR_LIT>'],<EOL>'<STR_LIT>': shape,<EOL>}<EOL>
Get the geometry description for a geography. This is a dict
        with two keys, 'properties' which is a dict of properties,
        and 'shape' which is a shapely shape (may be None).