X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;f=loctrkd%2Fgooglemaps.py;h=b84b64d18bdb1e19e4ca668f631dccd7ba051c26;hb=7af666616104a5c8c1ed56c4170a77412fdef923;hp=6838324bd1c95062df2b4db4a62eb532bc41c8f4;hpb=4685264dbad5f904124e9bb390a36c8902a544d5;p=loctrkd.git diff --git a/loctrkd/googlemaps.py b/loctrkd/googlemaps.py index 6838324..b84b64d 100644 --- a/loctrkd/googlemaps.py +++ b/loctrkd/googlemaps.py @@ -53,10 +53,14 @@ def lookup( mnc: int, gsm_cells: List[Tuple[int, int, int]], wifi_aps: List[Tuple[str, int]], -) -> Tuple[float, float]: +) -> Tuple[float, float, float]: result = _lookup(mcc, mnc, gsm_cells, wifi_aps) if "location" in result: - return result["location"]["lat"], result["location"]["lng"] + return ( + result["location"]["lat"], + result["location"]["lng"], + result["accuracy"], + ) else: raise ValueError("google geolocation: " + str(result))