2 For when responding to the terminal is not trivial
6 from .opencellid import qry_cell
8 def prepare_response(conf, msg):
9 if isinstance(msg, WIFI_POSITIONING):
10 lat, lon = qry_cell(conf["opencellid"]["dbfn"],
11 msg.mcc, msg.gsm_cells)
12 return {"lat": lat, "lon": lon}