Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
·
d669f57
1
Parent(s):
d5bc95e
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ with st.sidebar:
|
|
34 |
|
35 |
# Filter data based on the radius
|
36 |
if selected_coords == 'Custom':
|
37 |
-
filtered_data = data[data.apply(lambda x: calculate_distance(x['
|
38 |
else:
|
39 |
filtered_data = data
|
40 |
|
|
|
34 |
|
35 |
# Filter data based on the radius
|
36 |
if selected_coords == 'Custom':
|
37 |
+
filtered_data = data[data.apply(lambda x: calculate_distance(x['latitude'], x['longitude'], custom_lat, custom_lon), axis=1) <= radius_in_meters]
|
38 |
else:
|
39 |
filtered_data = data
|
40 |
|