def get_coords(coords):
    """
    Unwrap coordinates from a Feature, Geometry Object or an Array
    """
    if type(coords) == list:
        return coords
    if coords.get('type') == 'Feature':
        if coords.get('geometry') is not None:
            return coords.get('geometry').get('coordinates')
    elif coords.get('coordinates'):
        return coords.get('coordinates')
    raise Exception(
        'coords must be GeoJSON Feature, Geometry Object or an Array')
