Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -70,6 +70,7 @@ def geocode(address):
|
|
70 |
location = geolocator.geocode(address)
|
71 |
lat, lon = location.latitude, location.longitude
|
72 |
return lat, lon
|
|
|
73 |
def extract_vertices_1(multipolygon):
|
74 |
vertices = []
|
75 |
for polygon in multipolygon.geoms: # Access the individual polygons
|
@@ -97,10 +98,10 @@ def extract_vertices(gdf):
|
|
97 |
|
98 |
#Side Bar
|
99 |
address = st.sidebar.text_input(
|
100 |
-
"Address", "
|
101 |
date = st.sidebar.date_input("Date", pd.Timestamp.today(), key='date')
|
102 |
number_days_range = st.sidebar.selectbox(
|
103 |
-
'Within Day Range:', (5, 10,
|
104 |
|
105 |
# refresh = st.sidebar.radio(
|
106 |
# 'Refresh Data (as of 6/7/23): Will Take Time ', (False, True))
|
|
|
70 |
location = geolocator.geocode(address)
|
71 |
lat, lon = location.latitude, location.longitude
|
72 |
return lat, lon
|
73 |
+
|
74 |
def extract_vertices_1(multipolygon):
|
75 |
vertices = []
|
76 |
for polygon in multipolygon.geoms: # Access the individual polygons
|
|
|
98 |
|
99 |
#Side Bar
|
100 |
address = st.sidebar.text_input(
|
101 |
+
"Address", "123 Ocean Way, Santa Monica, CA 90402")
|
102 |
date = st.sidebar.date_input("Date", pd.Timestamp.today(), key='date')
|
103 |
number_days_range = st.sidebar.selectbox(
|
104 |
+
'Within Day Range:', (30, 5, 10, 90, 180))
|
105 |
|
106 |
# refresh = st.sidebar.radio(
|
107 |
# 'Refresh Data (as of 6/7/23): Will Take Time ', (False, True))
|