geowifi
geowifi copied to clipboard
Add unwiredlabs service
They also provide a database, claiming 4bilion wifi APs.
BSSID lookup has free 100calls/day/IP plan, but has to be activated via support. https://unwiredlabs.com/api
demo
import requests
url = "https://eu1.unwiredlabs.com/v2/process"
payload = "{\"token\": \"your_API_token\",\"radio\": \"gsm\",\"mcc\": 310,\"mnc\": 410,\"cells\": [{\"lac\": 7033,\"cid\": 17811}],\"wifi\": [{\"bssid\": \"00:17:c5:cd:ca:aa\",\"channel\": 11,\"frequency\": 2412,\"signal\": -51}, {\"bssid\": \"d8:97:ba:c2:f0:5a\"}],\"address\": 1}"
response = requests.request("POST", url, data=payload)
print(response.text)
request
{
"token": "API key",
"wifi": [{
"bssid": "00:17:c5:cd:ca:aa",
"signal": -51
}, {
"bssid": "d8:97:ba:c2:f0:5a"
}],
"address": 1
}
they say min 2 closeby bssid s are needed, not sure how strict that is
response
{
"status": "ok",
"balance": 100,
"lat": 39.56763197,
"lon": -105.00727917,
"accuracy": 10, // meter
}