uploadet project

This commit is contained in:
2025-06-12 16:16:09 +03:00
parent 0cc77fd89a
commit cb632752a3
12 changed files with 21645 additions and 8 deletions

View File

@@ -1 +1 @@
gAAAAABoRbkwFPe0CkDxY3L74TIV3uqc8LMiN9OnPLRW060oh_dFpQUfSwZ6iyHCoVGqWQk7P1aS8EWEtq7BWVz1r_8rK7cYk65ou4a8t8UPRU3hJMY5JnBKE0Og2N7qC2aSYEOKG6iS
gAAAAABoSC6DwXztGeQ4SwHb6XVAErzxHacSu0oMwBsedH1EJw2u0Z9AxLb5JKN1qK8jeuX2MWul2MA5IDOB2SM7TCcwbiw_o22VVDv7CkkceFfwJ8SpMpRHJqTNDdUmulnQoGMG2BJ2

View File

@@ -0,0 +1 @@
[]

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 892 KiB

View File

@@ -0,0 +1,11 @@
[
{
"start_time": "2025-06-06T04:45:45.000+00:00",
"end_time": "2025-06-06T13:49:07.000+00:00",
"duration_seconds": 32563,
"location": {
"latitude": 45.79917944444444,
"longitude": 24.085654444444444
}
}
]

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 877 KiB

View File

@@ -1 +1 @@
gAAAAABoPu5x585IL9U8GSHw4j-KQTpHJixfiwEHQf9KHR25D2fFcYDz6HrJzFP4U3iFxcV9dQQ1VhgDfDPO_nVDafVjMz9kiJdbp1KtiSyB8odqNmq1v6ZfLr_YXqzqNhMHfuA1zr4NgUkaivF-dQr84Z4WA4i1crmR-BA7tMIQti7rDjtmIxQATfKrNw1zD5yYrDiI2jOkUAGiJ1hIY0Ue-x0wmykzktwD_xIsixxX3IOeqgY39gZ7XmwRYA4boZsSbWqqmVDgjBElaUYCUKlp_t-50vHeMNySt5AHDwmY3cOb0zePMEVYzQiKMOTRsSMrAavnIquY6BHytWKOJuuOoWS5aTiuy1YGw6wMQZT7MFcza9u4iYjJm39cdLnGl4tWn8StvawbXepPFqrwcoJXAfkvd8f--eCPuAXIFi__EMM0jlO2PGSbj-5YjFnCdKspnycrlLB6
gAAAAABoSC8ETq7zYpfWzXgrdkV84SLWn1h77ozX8l4wPFySWQQG8oO0kFEurAmDnPnlggBy2HR7U2J8wBhckLOo7xFfcppibTLBlqW6Pu_krITGBokWDUJ9rm8rZrjZwnbH1qr8qWupaAW84y-uMpJ9gnE0lR6MAhxqgkHpqnHp6SQZZuNAwDVrEC77LeUL1tp64gel0jxpTdiTUXdKQmLpPVyl0PSkHL2YgM4TyFNzQrTuzvtu91huqO5EbkxLOi5JCXZ5NzFxET81MM_80xSTj5j1ZSroJp4Zgc7JigqUhavQsCOjwqG8QRP8yAx-EhMKSim_6B8gKvYj5kLdWfKbUIFJxzixGPUKPeKQxZFEFo-R5eaiSt3N2to4przQTco7ev6a9Q8wL4htPfyaWYATRBqb_ULLqQRxNH8c7Kj9V0B2K-EonZK4ptcpryR4Ve_7Eyee533d

View File

@@ -35,12 +35,24 @@ def open_pauses_popup(screen_instance, project_name, RESOURCES_FOLDER, on_save_c
try:
geolocator = Nominatim(user_agent="traccar_animation")
location = geolocator.reverse((lat, lon), exactly_one=True, radius=50, timeout=10)
if location and location.address:
return location.address
else:
return "Unknown place"
except Exception as e:
return "Unknown place"
if not location or not location.raw or not location.address:
return f"{lat:.5f}, {lon:.5f}"
address = location.raw.get('address', {})
# 1. Place or location nearby (amenity, attraction, building, etc.)
for key in ['attraction', 'building', 'amenity', 'shop', 'leisure', 'tourism', 'place', 'public_building']:
if key in address:
return address[key]
# 2. Street name and number
if 'road' in address and 'house_number' in address:
return f"{address['road']} {address['house_number']}"
# 3. Road name
if 'road' in address:
return address['road']
# 4. Fallback: lat/lon
return f"{lat:.5f}, {lon:.5f}"
except Exception:
return f"{lat:.5f}, {lon:.5f}"
# Main layout for popup (vertical)
layout = BoxLayout(orientation='vertical', spacing=14, padding=14)