extract_region_type#

static FredHelpers.extract_region_type(response)[source]#

Helper method to extract the region type from a GeoFred response dict.

Parameters:

response (Dict) – FRED GeoFred response dictionary.

Returns:

Extracted region type.

Return type:

str

Raises:

ValueError – If no meta data or region type is found in the response.