def get_minimum(feature):
    """Get minimum of either a single Feature or Feature group."""
    if hasattr(feature, "location"):
        return feature.location.min()
    return min(f.location.min() for f in feature)