Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
•
2737b30
1
Parent(s):
287a688
Update app.py
Browse files
app.py
CHANGED
@@ -6,17 +6,6 @@ from geopy.distance import geodesic
|
|
6 |
import googlemaps
|
7 |
from geopy.exc import GeocoderTimedOut
|
8 |
|
9 |
-
|
10 |
-
# Initialize variables to avoid NameError
|
11 |
-
selected_coords = 'Custom'
|
12 |
-
radius_visible = True
|
13 |
-
custom_address_initial = 'Av. Senador Alberto Pasqualini, 177 - Centro, Lajeado - RS, 95900-034' # Initial custom address
|
14 |
-
custom_lat = data['latitude'].mean()
|
15 |
-
custom_lon = data['longitude'].mean()
|
16 |
-
radius_in_meters = 1000
|
17 |
-
filtered_data = data # Initialize with the entire dataset
|
18 |
-
|
19 |
-
|
20 |
# Function to calculate distance in meters between two coordinates
|
21 |
def calculate_distance(lat1, lon1, lat2, lon2):
|
22 |
coords_1 = (lat1, lon1)
|
@@ -68,9 +57,10 @@ data = pd.read_excel('ven_ter_fim_PEDÓ.xlsx')
|
|
68 |
# Initialize variables to avoid NameError
|
69 |
selected_coords = 'Custom'
|
70 |
radius_visible = True
|
|
|
71 |
custom_lat = data['latitude'].mean()
|
72 |
custom_lon = data['longitude'].mean()
|
73 |
-
radius_in_meters =
|
74 |
filtered_data = data # Initialize with the entire dataset
|
75 |
|
76 |
# Find the maximum distance between coordinates
|
|
|
6 |
import googlemaps
|
7 |
from geopy.exc import GeocoderTimedOut
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
# Function to calculate distance in meters between two coordinates
|
10 |
def calculate_distance(lat1, lon1, lat2, lon2):
|
11 |
coords_1 = (lat1, lon1)
|
|
|
57 |
# Initialize variables to avoid NameError
|
58 |
selected_coords = 'Custom'
|
59 |
radius_visible = True
|
60 |
+
custom_address_initial = 'Av. Senador Alberto Pasqualini, 177 - Centro, Lajeado - RS, 95900-034' # Initial custom address
|
61 |
custom_lat = data['latitude'].mean()
|
62 |
custom_lon = data['longitude'].mean()
|
63 |
+
radius_in_meters = 1500
|
64 |
filtered_data = data # Initialize with the entire dataset
|
65 |
|
66 |
# Find the maximum distance between coordinates
|