(data)
return flattened_records
Un-nest data from object implementing __geo_interface__ standard
Un-nest data from object implementing __geo_interface__ standard
Un - nest data from object implementing __geo_interface__ standard
def records_from_geo_interface(data):
    """Un-nest data from object implementing __geo_interface__ standard"""
    flattened_records = []
    for d in data.__geo_interface__.get("features"):
        record = d.get("properties", {})
        geom = d.get("geometry", {})
        record["geometry"] = geom
        flattened_records.append(record)
    return flattened_records
def records_from_geo_interface ( data ) : flattened_records = [ ] for d in data . __geo_interface__ . get ( "features" ) : record = d . get ( "properties" , { } ) geom = d . get ( "geometry" , { } ) record [ "geometry" ] = geom flattened_records . append ( record ) return flattened_records