meaguirre3's picture
Rename plot.py to plots.py
117c7b9 verified
raw
history blame contribute delete
183 Bytes
import pandas as pd
import polyline
def get_segment(df , lId):
df = df[df['id'].isin(lId)]
df["polyline"] = df["map_pol"].apply(polyline.decode)
return df["polyline"].tolist()