ols: synthesize cell tower data when no exact match is found

This commit is contained in:
Colin 2024-06-21 16:24:13 +00:00
parent 1f48f41927
commit a603c3e6bc
2 changed files with 5 additions and 3 deletions

View File

@ -4,7 +4,8 @@
# and caching those on-disk so that repeat queries may be serviced offline.
#
# it listens on localhost:8088, and one can validate its operation with a query like (substitute macAddresses for something real):
# curl -d '{"wifiAccessPoints":[{"macAddress":"01:23:45:67:89:ab","signalStrength":-78},{"macAddress":"cd:ef:01:23:45:56","signalStrength":-76}]}' http://127.0.0.1:8088/v1/geolocate
# - WiFi: curl -d '{"wifiAccessPoints":[{"macAddress":"01:23:45:67:89:ab","signalStrength":-78},{"macAddress":"cd:ef:01:23:45:56","signalStrength":-76}]}' http://127.0.0.1:8088/v1/geolocate
# - Cell: curl -d '{"cellTowers":[{ "radioType": "lte", "mobileCountryCode": 310, "mobileNetworkCode": 260, "locationAreaCode": NNNNN, "cellId": MMMMMMMM }]}' http://127.0.0.1:8088/v1/geolocate
#
## wigle docs:
# - IRC: #wigle on WiGLE.net:6667

View File

@ -18,11 +18,12 @@
src = fetchFromGitea {
# my dev branch has a few changes:
# - fix `cellid-ols-import` to make --mcc, --mnc actually be optional
# - synthesize cell locations when no exact match is found
domain = "git.uninsane.org";
owner = "colin";
repo = "ols";
rev = "810508aa7e1fad0257d1a2cf8d7a212a85868a99";
hash = "sha256-ybSyj+4GbA7nHI8tT423wwcwvUcJo+v8avlOMpoMK14=";
rev = "2caacd27a6253f711d0820ae51e6fe178bd80343";
hash = "sha256-vzvEraBi71xz1rjQWFRFKkAaVO9ASNQ2dTvT6y+xihI=";
};
# src = fetchFromGitea {
# domain = "codeberg.org";