Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -208,15 +208,40 @@ def geocode_location(location_name):
|
|
| 208 |
|
| 209 |
# The updated page_vacation function using location names
|
| 210 |
def page_vacation():
|
| 211 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
|
| 213 |
# Inputs for start and end locations by name
|
| 214 |
-
st.header("Start Point")
|
| 215 |
-
start_location_name = st.text_input("Enter Start Location Name", "Brandenburg Gate, Berlin")
|
| 216 |
|
| 217 |
-
st.header("End Point")
|
| 218 |
-
end_location_name = st.text_input("Enter End Location Name", "Reichstag Building, Berlin")
|
| 219 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 220 |
if st.button("Find Route"):
|
| 221 |
# Geocode the location names to get the coordinates
|
| 222 |
start_coords = geocode_location(start_location_name)
|
|
|
|
| 208 |
|
| 209 |
# The updated page_vacation function using location names
|
| 210 |
def page_vacation():
|
| 211 |
+
left_column, right_column = st.columns([4, 1])
|
| 212 |
+
|
| 213 |
+
with left_column:
|
| 214 |
+
st.title("Scenic Routes & Stops: Your Vacation Odyssey")
|
| 215 |
+
|
| 216 |
+
# Add content to the right column (picture)
|
| 217 |
+
with right_column:
|
| 218 |
+
st.image("Vaccation_Route_finder_Logo.png")
|
| 219 |
+
|
| 220 |
+
|
| 221 |
|
| 222 |
# Inputs for start and end locations by name
|
| 223 |
+
#st.header("Start Point")
|
| 224 |
+
#start_location_name = st.text_input("Enter Start Location Name", "Brandenburg Gate, Berlin")
|
| 225 |
|
| 226 |
+
#st.header("End Point")
|
| 227 |
+
#end_location_name = st.text_input("Enter End Location Name", "Reichstag Building, Berlin")
|
| 228 |
|
| 229 |
+
|
| 230 |
+
|
| 231 |
+
# Create two columns
|
| 232 |
+
left_colum, right_column2 = st.columns(2)
|
| 233 |
+
|
| 234 |
+
# Inputs for start location name
|
| 235 |
+
with left_column:
|
| 236 |
+
st.header("Start Point")
|
| 237 |
+
start_location_name = st.text_input("Enter Start Location Name", "Österbergstraße 3, 72074 Tübingen, Germany")
|
| 238 |
+
|
| 239 |
+
# Inputs for end location name
|
| 240 |
+
with right_column:
|
| 241 |
+
st.header("End Point")
|
| 242 |
+
end_location_name = st.text_input("Enter End Location Name", "Burgsteige, 72639 Neuffen, Germany")
|
| 243 |
+
|
| 244 |
+
|
| 245 |
if st.button("Find Route"):
|
| 246 |
# Geocode the location names to get the coordinates
|
| 247 |
start_coords = geocode_location(start_location_name)
|