I
Immich•2y ago
Jakob

Change geolocation result

Hi, I'm testing immich atm, looks really nice so far, but I saw that my pictures get located in the small city 3km north of my position instead of the city I live in. The images are tagged correctly, the location on the map is correct. Is there anything I could do, to correct that? I've got REVERSE_GEOCODING_PRECISION=3, so I guess thats the most precise I can set it? Would I need to take it up with https://www.geonames.org/ ? I fear that won't help... Thanks!
9 Replies
J
J•2y ago
I had the same problem of geonames giving me inaccurate names. I had to update the db manually and remove the tstada volume. But any rescanning will wipe the manual change.
Jakob
JakobOP•2y ago
So I guess I'm stuck with it. Not sure why it bothers me so much, but it does. Does anybody know if there is any use in contacting geonames about it?
Alex Tran
Alex Tran•2y ago
I think this is the limitation of the geocoding solution, we might be able to add different provider like Mapbox or Google in the future for user to choose if they want to use those services for reverse geocoding
Jakob
JakobOP•2y ago
Thanks, that would be great
bo0tzz
bo0tzz•2y ago
I believe geonames is a collaborative database, so you might be able to just fix it yourself?
J
J•2y ago
My workaround for now is to save the location names in the sidecar (at least for those that geonames was not correct/precise), so that when I rescan metadata, I can correct the db without hunting for the few wing ones.
Jakob
JakobOP•2y ago
I guess immich isn't using the geonames API but some downloaded file? Because when I input my lat/lon from the image into their search bar, all the results have the correct city 🤔
Alex Tran
Alex Tran•2y ago
Yes we download the file to the server and and reverse reverse geocoding lookup information in the file. The purpose is to avoid sending data to a third party service
Jakob
JakobOP•2y ago
Could you point me in the direction of the corresponding code? Where the file is being downloaded and used? Searched the code for geonames.org without useful results Ah, I found the time to check out what exactly immich does. So you use https://www.npmjs.com/package/local-reverse-geocoder, which in turns returns the nearest city to the coordinates. I'm living nearer to the city center of the small "wrong" town than the bigger "correct" one. I guess thats the problem and thats one that won't go away without some serious change. Not sure why it bugs me that much 🙂

Did you find this page helpful?