add via_ip.estimate_location using binary search

This commit is contained in:
Sean Breckenridge 2023-02-22 04:51:57 -08:00
parent 7aed18042d
commit 0a48393589
5 changed files with 84 additions and 24 deletions

View file

@ -22,10 +22,10 @@ class Config(user_config):
]]
]
# default ~1km accuracy
# default ~30km accuracy
# this is called 'home_accuracy' since it lives on the base location.config object,
# to differentiate it from accuracy for other providers
home_accuracy: float = 1000
home_accuracy: float = 30_000
# TODO could make current Optional and somehow determine from system settings?
@property