wavl-map
import pandas as pd
import folium
# Load the filtered member data
df = pd.read_csv("members_closer.csv")
# Create a map centered around the West Asheville campus
# (Approximate coordinates for 55 Adams Hill Rd, Asheville, NC)
map_center = [35.5945, -82.5823]
m = folium.Map(location=map_center, zoom_start=12)
# Add markers for each member
for _, row in df.iterrows():
lat = row["latitude"]
lon = row["longitude"]
popup_text = f"{row['name']}
{row['address']}
Phone: {row['phone']}" folium.Marker([lat, lon], popup=popup_text).add_to(m) # Save the map to an HTML file m.save("members_map.html")
{row['address']}
Phone: {row['phone']}" folium.Marker([lat, lon], popup=popup_text).add_to(m) # Save the map to an HTML file m.save("members_map.html")
