Skip to content
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

Display GPS in OpenStreetMap not working #1

Open
Filbuntu opened this issue Jan 9, 2025 · 4 comments
Open

Display GPS in OpenStreetMap not working #1

Filbuntu opened this issue Jan 9, 2025 · 4 comments

Comments

@Filbuntu
Copy link

Filbuntu commented Jan 9, 2025

Hello

Thanks a lot for putting together these scripts! This is really helpful!
Unfortunately the link for OpenStreetMap (OSM) does not really work although it seems to pick up the location.
Any hint how to tweak the link?

Thanks!

@s-n-ushakov
Copy link
Owner

Hi @Filbuntu , and thank you for your feedback :)

I have checked my arrangements right now. and OpenStreetMap does open for me in the right way. It maybe takes it a bit of time to open as compared to some other mapping facilities...

An URL that is being created for a sample image is https://www.openstreetmap.org/?mlat=59.944999N&mlon=30.227499E , and once OpenStreetMap gets it handled, it becomes https://www.openstreetmap.org/?mlat=59.944999N&mlon=30.227499E#map=12/59.9450/30.2275 .
And everything looks in place for me.

My first guess is that there may be some trick in locale settings.
Could you share the URLs that you obtain, and some screenshot that might represent the issue?

@Filbuntu
Copy link
Author

Filbuntu commented Jan 9, 2025

Wow, thank you for the speedy response!
It is good to know that there is probably a problem on my side. The links you pasted work well.

When I use the Nemo action the following URL is displayed in the browser, just an example:
https://www.openstreetmap.org/?mlat=13.711372N%2C+mlon%3D120.920738E#map=12/59.9450/30.2275

I found out that the add-on Clear URL (https://addons.mozilla.org/en-US/firefox/addon/clearurls/) adds some letters to the link (2C and 3D) somehow. I did not find a way to prevent this but can turn off the add-on.

Without the add-on I get this link which does not work for me:
https://www.openstreetmap.org/?mlat=13.711372N,%20mlon=120.920738E#map=12/59.9450/30.2275

In the address bar: the %20 is displayed as space (the space is transformed to a %20 when I copy/paste the URL).
https://www.openstreetmap.org/?mlat=13.711372N, mlon=120.920738E#map=12/59.9450/30.2275

When I replace the ,%20 with &, it looks like your link and the links works:
https://www.openstreetmap.org/?mlat=13.711372N&mlon=120.920738E

The exif info:
GPS Latitude : 13.711373 N
GPS Longitude : 120.920739 E

What can I do to make it really work?

@s-n-ushakov
Copy link
Owner

Hi @Filbuntu again, and thank you for your data that is really amazing :)

Could we arrange a kind of debugging session?

My suggestion is the following:

  • you download the exif_metadata_mapping_openstreetmap.bash.txtfile that is attached here;
  • rename it as exif_metadata_mapping_openstreetmap.bash;
  • make a backup copy of your $HOME/.local/share/nemo/exif_metadata_mapping_openstreetmap.bash file;
  • replace your $HOME/.local/share/nemo/exif_metadata_mapping_openstreetmap.bash file with the new one;
  • make one or more attempts to get your picture mapped with OpenStreetMap;
  • inspect the contents of the new $HOME/openstreetmap.log file;
  • post the contents of this log file here :)

Hope we'll see something useful that may shed some light on what's happening...
Might we go like that?

exif_metadata_mapping_openstreetmap.bash.txt

@s-n-ushakov
Copy link
Owner

Hi @Filbuntu , how are you?
Did you succeed in getting you issue fixed?
Could you kindly drop a line of what you current result is?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants