`Hi! I have a dataset with latitude and longitude and a column for specific persons that have been on the address during the day. I am currently showing where they have been during the day with the code below.
But how do I connect the dots with a route following the road? and maybe even calculating the distance traveled between the points? The "hex" column is a column with a specific color for each employee name. Each employee can appear multiple times in the dataset.`
import folium
import webbrowser
import pandas as pd
for index, row in GeoSpatial1dec.iterrows():
folium.CircleMarker([row['latitude'], row['longitude']],
radius=10,
popup=row['employee'],
fill=False, fill_color = row['Hex'], fill_opacity = 1).add_to(my_map)
my_map.save("map.html")
webbrowser.open("map.html")
I tried writing a polygon but I cannot make them specific for each employee.