mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-10-31 03:01:58 +01:00
fis 0 lat and long
This commit is contained in:
1 parent
ec9fafc362
commit
3e1d95ed2c
1 file changed
+2
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user