add via_ip.estimate_location using binary search
This commit is contained in:
parent
7aed18042d
commit
0a48393589
5 changed files with 84 additions and 24 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue