Update app.py
Browse files
app.py
CHANGED
@@ -45,13 +45,10 @@ def add_medical_center_paths(m, source, med_centers):
|
|
45 |
)
|
46 |
).add_to(m)
|
47 |
|
48 |
-
#
|
49 |
-
st.title('Google Maps and Minnesota Medical Centers πΊοΈ')
|
50 |
st.sidebar.header('Directions π')
|
51 |
-
|
52 |
source_location = st.sidebar.text_input("Source Location", "Mound, MN")
|
53 |
destination_location = st.sidebar.text_input("Destination Location", "Minneapolis, MN")
|
54 |
-
|
55 |
if st.sidebar.button('Get Directions'):
|
56 |
steps, coords = get_directions_and_coords(source_location, destination_location)
|
57 |
if steps and coords:
|
@@ -65,7 +62,7 @@ if st.sidebar.button('Get Directions'):
|
|
65 |
st.write("No available routes.")
|
66 |
|
67 |
# Minnesota Medical Centers
|
68 |
-
st.markdown("## π₯ Minnesota Medical Centers π³")
|
69 |
m2 = folium.Map(location=[45.6945, -93.9002], zoom_start=6)
|
70 |
marker_cluster = MarkerCluster().add_to(m2)
|
71 |
|
|
|
45 |
)
|
46 |
).add_to(m)
|
47 |
|
48 |
+
# Driving Directions Sidebar
|
|
|
49 |
st.sidebar.header('Directions π')
|
|
|
50 |
source_location = st.sidebar.text_input("Source Location", "Mound, MN")
|
51 |
destination_location = st.sidebar.text_input("Destination Location", "Minneapolis, MN")
|
|
|
52 |
if st.sidebar.button('Get Directions'):
|
53 |
steps, coords = get_directions_and_coords(source_location, destination_location)
|
54 |
if steps and coords:
|
|
|
62 |
st.write("No available routes.")
|
63 |
|
64 |
# Minnesota Medical Centers
|
65 |
+
st.markdown("## πΊοΈ Maps πΊοΈ for π₯ Minnesota Medical Centers π³")
|
66 |
m2 = folium.Map(location=[45.6945, -93.9002], zoom_start=6)
|
67 |
marker_cluster = MarkerCluster().add_to(m2)
|
68 |
|