]> www.average.org Git - loctrkd.git/blobdiff - gps303/googlemaps.py
Multiprotocol support in zmq messages and storage
[loctrkd.git] / gps303 / googlemaps.py
index 2ea0103932384ca86b34daeb1dc1d15a1411c29c..dac607959b6e102579dc66030275aec8e8e4f0f9 100644 (file)
@@ -11,6 +11,10 @@ def init(conf: Dict[str, Any]) -> None:
     gclient = gmaps.Client(key=token)
 
 
+def shut() -> None:
+    return
+
+
 def lookup(
     mcc: int,
     mnc: int,
@@ -54,7 +58,7 @@ if __name__.endswith("__main__"):
     c.execute(
         """select tstamp, packet from events
             where proto in (?, ?)""",
-        (WIFI_POSITIONING.PROTO, WIFI_OFFLINE_POSITIONING.PROTO),
+        (proto_name(WIFI_POSITIONING), proto_name(WIFI_OFFLINE_POSITIONING)),
     )
     init({"googlemaps": {"accesstoken": sys.argv[2]}})
     count = 0