From 4e74bbb443611a53d69dc1931427d2ae35d3302e Mon Sep 17 00:00:00 2001 From: Aleeeehh Date: Sat, 2 Aug 2025 03:36:15 +0200 Subject: [PATCH] incremented geo radius 2 --- backend/endpoints/geo_access.py | 2 +- testing/script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/endpoints/geo_access.py b/backend/endpoints/geo_access.py index 157db6f..c7972cd 100644 --- a/backend/endpoints/geo_access.py +++ b/backend/endpoints/geo_access.py @@ -39,7 +39,7 @@ async def get_geo_access_real(request: GeoAccessRequest): # Centro del controllo geografico (Lido di Bolzano) CENTER_LAT = 46.68349 CENTER_LON = 11.19043 - RADIUS_METERS = 500 + RADIUS_METERS = 2000 # Creo il checker per il cerchio di 50 metri from geo_access import CircleChecker diff --git a/testing/script.js b/testing/script.js index 9cddcd5..f3de589 100644 --- a/testing/script.js +++ b/testing/script.js @@ -123,7 +123,7 @@ async function checkGPSLocation() { if (response.ok) { const result = data.success ? '✅ DENTRO' : '❌ FUORI'; - showStatus(`${result} - Sei ${data.success ? 'dentro' : 'fuori'} dal raggio di 50 metri!`, data.success); + showStatus(`${result} - Sei ${data.success ? 'dentro' : 'fuori'} dal raggio di 2000 metri!`, data.success); showResult(data); } else { showStatus(`❌ Errore: ${data.detail || 'Errore sconosciuto'}`, false);