From 3e1d95ed2c8d6e73a764421859fd98e2b5a38b2c Mon Sep 17 00:00:00 2001 From: pablorevilla-meshtastic Date: Wed, 28 Oct 2026 10:31:18 -0700 Subject: [PATCH] fis 0 lat and long --- meshview/mqtt_store.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meshview/mqtt_store.py b/meshview/mqtt_store.py index 079574b..6f6d12d 100644 --- a/meshview/mqtt_store.py +++ b/meshview/mqtt_store.py @@ -45,7 +45,8 @@ def parse_node_id(value: str | None) -> int | None: def has_valid_location(lat: int | None, lon: int | None) -> bool: - return lat is not None and lon is not None and abs(lat) > 1 and abs(lon) > 1 + """Exclude the box within one degree of (0, 0); coordinates use 1e-7 degrees.""" + return lat is not None and lon is not None and (abs(lat) > 10_000_000 or abs(lon) > 10_000_000) def node_user_id(node_id: int) -> str: