Anne314159 commited on
Commit
5f4a028
·
verified ·
1 Parent(s): 3d2bac1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -172,12 +172,12 @@ def page_vacation():
172
 
173
  # Inputs for start and end coordinates
174
  st.header("Start Point")
175
- start_lat = st.number_input("Start Latitude", value=49.41461)
176
- start_lon = st.number_input("Start Longitude", value=8.681495)
177
 
178
  st.header("End Point")
179
- end_lat = st.number_input("End Latitude", value=49.420318)
180
- end_lon = st.number_input("End Longitude", value=8.687872)
181
 
182
  if st.button("Find Route"):
183
  route = get_route([start_lon, start_lat], [end_lon, end_lat])
@@ -189,10 +189,10 @@ def page_vacation():
189
  st.pydeck_chart(pdk.Deck(
190
  map_style='mapbox://styles/mapbox/light-v9',
191
  initial_view_state=pdk.ViewState(
192
- latitude=49.41461,
193
- longitude=8.681495,
194
  zoom=11,
195
- pitch=50,
196
  ),
197
  layers=[
198
  pdk.Layer(
 
172
 
173
  # Inputs for start and end coordinates
174
  st.header("Start Point")
175
+ start_lat = st.number_input("Start Latitude", value=48.5216)
176
+ start_lon = st.number_input("Start Longitude", value=9.0576)
177
 
178
  st.header("End Point")
179
+ end_lat = st.number_input("End Latitude", value=48.7758)
180
+ end_lon = st.number_input("End Longitude", value=9.1829)
181
 
182
  if st.button("Find Route"):
183
  route = get_route([start_lon, start_lat], [end_lon, end_lat])
 
189
  st.pydeck_chart(pdk.Deck(
190
  map_style='mapbox://styles/mapbox/light-v9',
191
  initial_view_state=pdk.ViewState(
192
+ latitude=48.5216,
193
+ longitude=9.0576,
194
  zoom=11,
195
+ pitch=10,
196
  ),
197
  layers=[
198
  pdk.Layer(