incremented geo radius 2
This commit is contained in:
parent
4af7197a7c
commit
4e74bbb443
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ async def get_geo_access_real(request: GeoAccessRequest):
|
||||||
# Centro del controllo geografico (Lido di Bolzano)
|
# Centro del controllo geografico (Lido di Bolzano)
|
||||||
CENTER_LAT = 46.68349
|
CENTER_LAT = 46.68349
|
||||||
CENTER_LON = 11.19043
|
CENTER_LON = 11.19043
|
||||||
RADIUS_METERS = 500
|
RADIUS_METERS = 2000
|
||||||
|
|
||||||
# Creo il checker per il cerchio di 50 metri
|
# Creo il checker per il cerchio di 50 metri
|
||||||
from geo_access import CircleChecker
|
from geo_access import CircleChecker
|
||||||
|
|
|
@ -123,7 +123,7 @@ async function checkGPSLocation() {
|
||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const result = data.success ? '✅ DENTRO' : '❌ FUORI';
|
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);
|
showResult(data);
|
||||||
} else {
|
} else {
|
||||||
showStatus(`❌ Errore: ${data.detail || 'Errore sconosciuto'}`, false);
|
showStatus(`❌ Errore: ${data.detail || 'Errore sconosciuto'}`, false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue