-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how does importing/merging emitters exactly work? #26
Comments
Thanks, I'm surprised there are still users of this backend now that MicroG has removed support for external location backends. These options only affect conflict handling. So if you import an emitter that already exists in local database:
|
are you kidding? even the "microG flavor of LineageOS 21" (using Android 14 as a base) still ships with microG 0.2.27 (thank god!). i guess because it is still considered the latest stable release even by microG. thanks for taking your time and elaborating the functions a little bit more. IIRC for every emitter a position (lat & long) and a radius is saved....
is my hasty conclusion correct, that merging databases from 2 or even more different devices which are used in the same area might not be the smartest idea, since the accuracy might even go down because the radius gets further and further expanded, which might not even make sense for the current device because it might simply have a not that strong radio dongle? |
The two radii (east-west and north-south) and a center position give you a rectangle (approximately, as we're on a sphere) which corresponds to a bounding box (with north & south latitude and east & west longitude). See merge and BoundingBox.update.
It's possible, but I would expect this to be really bad only in extreme cases (merging very sensitive and very insensitive devices).
Yes, you will never get a better accuracy on the merged positions, but it's less likely that you are actually outside the accuracy circle of the resulting location. Decreased accuracy also means that this emitter's weight will be reduced when averaging positions coming from multiple emitters. |
thank you very much @Helium314 for the insights into this topic. ok... with your description, the merging is crystal clear and even doesn't seem that complicated. 👍 yes... concerning decreased accuracy a few exceptions - especially when multiple (known) emitters are reachable - came into my mind at the time of writing, but i didn't want to text even more and stayed with the theoretical approach. one last question: |
It used to be a radius initially, but was changed to the ew/ns style at some point in original DejaVu backend. I considered switching the DB to bounding boxes, but found that the current style give more readable information when just looking into the database.
The emitter stays forever. There used to be a check whether supposedly nearby (but not detected) emitters are still existing, but I found that it used too much CPU with a large database, and often it incorrectly removed actually existing emitters (e.g. WiFi that you can't find through a thick wall or floor). |
first of all i have to say thank you @Helium314 for this backend! a few relatives and i use it for more than a year now, and it simply just works. 👏
for some months now i thought about importing the latest available MLS database and merging it with my local database, as i read that it can be downloaded somewhere. ...but until now i hadn't the time do it.
but now i have a different situation (some relatives visit my city for the first time since using Local NLP Backend - and i thought about giving them a kick-start by importing my database into their phone), which results in similar tasks and raise the same questions: i'm not 100% sure how the 3 import options work and would appreciate if someone could confirm my assumptions resp. elaborate them a little bit more.
The text was updated successfully, but these errors were encountered: