My final project is to improve Waze with AI. In order to do that I need to join 2 datasets.
1 - jams - linestrings that I convert to polygons using buffer
2 - alerts by user - points
Both are in the same city.
After cleaning the data and make columns as geometry object I need to add to alerts DF new column with value of the jams that contain the alert. I tried a lot of solutions in the net, no one helped me.
This is the 2 dataset: Alerts + Traffic
Trafficjan.set_geometry("polygeo")
m = gpd.sjoin(Alertsjan, Trafficjan, how="left", predicate="within")
This code gives me nothing.