zamojski / TowerCollector

The OpenCellID and MLS contributor's app.
Mozilla Public License 2.0
222 stars 27 forks source link

Option to record to local database #65

Open IzzySoft opened 5 years ago

IzzySoft commented 5 years ago

If it is possible, it would be great if TC could (optionally, when configured and enabled) record its findings to a local OpenCellId database – the one used by UnifiedNlp's LocalGsmProvider. That way one had them available immediately, without waiting for the next database update being downloaded.

Feasible? Thanks in advance!

zamojski commented 4 years ago

Can you share with me the description of the API they use? I cannot find one myself.

IzzySoft commented 4 years ago

I'm no dev, so I don't know that myself. I could give you the database details, but as LocalGsmProvider meanwhile moves the database into its own place I'm a) not sure if you could access it at all (might be possible as it resides on the SD card), and b) how LocalGsmProvider would react on changes made directly to its database.

Pushing a new db I managed by giving it a different name while copying, and renaming it when done (if the app detects a file named lacells.db.new it grabs it from the specified location and moves it to lacells.db in its own dir).

It's Github repo is here. I couldn't find a mention of some intent/interface provided for this usecase, nor any other documentation – but the author should be able to tell (though he focuses on his DejaVu provider now, he's not abandoned the project but still answers on issues).

I've opened an issue over there, hopefully n76 is able to help.

herrdeh commented 2 years ago

I used Deja vue before and found it really useful, because you can see immediate gain in accuracy when using it. Unluckily, with Andro11 it no longer works without special tricks, and the author n76 seemingly can no longer maintain it.

In this issue, user @breversa suggested to merge both projects. I cannot estimate how much of a effort this would be - but from my limited point of view this looks like a good idea.

Thanks for your work!