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

@ -79,10 +79,7 @@ def _iter_estimate_from(
estimators: LocationEstimators,
) -> Iterator[FallbackLocation]:
for est in estimators:
loc = list(est(dt))
if not loc:
continue
yield from loc
yield from est(dt)
def estimate_from(