def get_geometry(self, geo_level, geo_code):
        """ 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).
        """
        mapit_level = SETTINGS['level_codes'][geo_level]
        url = SETTINGS['url'] + '/area/MDB:%s/feature.geojson?type=%s' % (geo_code, mapit_level)
        url = url + '&generation=%s' % SETTINGS['generation']
        simplify = SETTINGS['level_simplify'].get(mapit_level)
        if simplify:
            url = url + '&simplification_level=%s' % simplify

        resp = requests.get(url)
        if resp.status_code == 404:
            return None
        resp.raise_for_status()

        feature = resp.json()
        shape = asShape(feature['geometry'])

        return {
            'properties': feature['properties'],
            'shape': shape,
        }
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).