Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
•
60fd325
1
Parent(s):
cf13568
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ from geopy.distance import geodesic
|
|
6 |
import googlemaps
|
7 |
from geopy.exc import GeocoderTimedOut
|
8 |
from streamlit_folium import st_folium
|
|
|
9 |
|
10 |
|
11 |
# Function to calculate distance in meters between two coordinates
|
@@ -233,7 +234,7 @@ filtered_data['Predicted_target'] = predicted_target
|
|
233 |
# Display the map and filtered_data
|
234 |
with st.container():
|
235 |
st.map(filtered_data, zoom=zoom_level, use_container_width=True)
|
236 |
-
|
237 |
st.write("Dados:", filtered_data) # Debug: Print filtered_data
|
238 |
|
239 |
k_threshold = 5
|
|
|
6 |
import googlemaps
|
7 |
from geopy.exc import GeocoderTimedOut
|
8 |
from streamlit_folium import st_folium
|
9 |
+
import folium
|
10 |
|
11 |
|
12 |
# Function to calculate distance in meters between two coordinates
|
|
|
234 |
# Display the map and filtered_data
|
235 |
with st.container():
|
236 |
st.map(filtered_data, zoom=zoom_level, use_container_width=True)
|
237 |
+
folium.add_marker(location=[custom_lat, custom_lon], popup="Local pesquisado", icon=folium.Icon(color="blue"))
|
238 |
st.write("Dados:", filtered_data) # Debug: Print filtered_data
|
239 |
|
240 |
k_threshold = 5
|