You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I moved form local-NLP-Backend and would like to import my old database. I wrote the following script:
#!/usr/bin/env python3
import csv
import sys
with open(sys.argv[1]) as incsv:
with open(sys.argv[1].split(".")[0]+"wifi.csv","w") as wificsv:
with open(sys.argv[1].split(".")[0]+"tower.csv","w") as towercsv:
inobj = csv.reader(incsv)
wifiobj = csv.writer(wificsv)
tobj = csv.writer(towercsv)
wifiobj.writerow(["mac","lat","lon","alt"])
tobj.writerow(["mcc","mnc","type","lac","cid","psc","lat","lon","alt"])
for row in inobj:
match row[1]:
case 'WLAN2':
wifiobj.writerow([row[0].split("/")[1].replace(':',''),row[2],row[3],''])
case 'LTE' :
rfid = row[0].split("/")
tobj.writerow([rfid[1],rfid[2],'3',rfid[5],rfid[3],rfid[4],row[2],row[3],''])
case 'GSM':
rfid = row[0].split("/")
tobj.writerow([rfid[1],rfid[2],'1',rfid[4],rfid[3],'',row[2],row[3],''])
case 'WCDMA':
rfid = row[0].split("/")
tobj.writerow([rfid[1],rfid[2],'2',rfid[4],rfid[3],'',row[2],row[3],''])
the csv files was accepted and in the location database, the entries are there. However, if I export the cell or wifi locations, only some old locations are present. Also the network localization in areas which are in the local NLP database do not work.
To Reproduce
Steps to reproduce the behavior:
Import locations form the script
Export locations -> no new locations are there
Expected behavior
Imported entries should appear in the export
System
Android Version: 15
Custom ROM: LineageOS 22.1
The text was updated successfully, but these errors were encountered:
Describe the bug
I moved form local-NLP-Backend and would like to import my old database. I wrote the following script:
the csv files was accepted and in the location database, the entries are there. However, if I export the cell or wifi locations, only some old locations are present. Also the network localization in areas which are in the local NLP database do not work.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Imported entries should appear in the export
System
Android Version: 15
Custom ROM: LineageOS 22.1
The text was updated successfully, but these errors were encountered: