constants: Rename WIFI_MAX_CLUSTER_METERS to WIFI_MAX_RADIUS

This commit is contained in:
Teemu Ikonen
2023-06-07 22:23:10 +03:00
parent f228e369a5
commit dbbf2a5c22
2 changed files with 3 additions and 3 deletions

View File

@@ -1,11 +1,11 @@
WIFI_DEFAULT_RADIUS = 100 # m
WIFI_DEFAULT_SIGNAL = -100
WIFI_MIN_RADIUS = 10 # m
WIFI_MAX_RADIUS = 500.0 # m
WIFI_MIN_ACCURACY = 10.0
WIFI_MAX_ACCURACY = 500.0
WIFI_MIN_SIGNAL = -90
WIFI_MAX_SIGNAL = -10
WIFI_MAX_CLUSTER_METERS = 500.0
WIFI_MAX_CLUSTER_SIZE = 20
CELL_TYPES = ('GSM', 'WCDMA', 'LTE')

View File

@@ -16,8 +16,8 @@ from ols.constants import (
CELL_MIN_SIGNAL,
WIFI_DEFAULT_SIGNAL,
WIFI_MAX_ACCURACY,
WIFI_MAX_CLUSTER_METERS,
WIFI_MAX_CLUSTER_SIZE,
WIFI_MAX_RADIUS,
WIFI_MAX_SIGNAL,
WIFI_MIN_ACCURACY,
WIFI_MIN_SIGNAL,
@@ -470,7 +470,7 @@ class ClusteringLocator(LocatorBase):
cluster_lookups,
min_radius=WIFI_MIN_ACCURACY,
min_signal=WIFI_MIN_SIGNAL,
max_distance=WIFI_MAX_CLUSTER_METERS)
max_distance=WIFI_MAX_RADIUS)
log.debug(
f'Wifi clusters: {len(clusters)} (' + ', '.join(