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

Add support for geo: URI in "Goto coordinates..." #2710

Open
jech opened this issue Nov 2, 2024 · 5 comments
Open

Add support for geo: URI in "Goto coordinates..." #2710

jech opened this issue Nov 2, 2024 · 5 comments

Comments

@jech
Copy link

jech commented Nov 2, 2024

While going for a walk, I wrote down the geo: URL of a feature that is badly tagged. While taking the bus back home, I open Vespucci, choose Find in the bottom-right menu, paste the geo: URL... and Nominatim answers Not found.

How do I point Vespucci at a geo: URL?

(The workaround is to paste the geo: URL into Organic Maps (OM), then choose Open in another app in OM, anc choose Vespucci.)

@simonpoole
Copy link
Collaborator

The basic assumption is that the geo: URL is somewhere in an app of browser on device, then you just have to click it.

If you have it as pure text it is somewhat more involved, paste it in to the "Go to coordinates" modal in the location menu, remove geo: and anything trailing the coordinates in the URL and click OK.

@jech
Copy link
Author

jech commented Nov 2, 2024

The basic assumption is that the geo: URL is somewhere in an app of browser on device, then you just have to click it.

Unfortunately, most Android applications don't clickify geo: URLs.
Thanks for your answer.

If you have it as pure text it is somewhat more involved, paste it in to the "Go to coordinates" modal in the location menu, remove geo: and anything trailing the coordinates in the URL and click OK.

Two thoughts:

  1. shouldn't the modal be able to parse various formats of coordinates, including geo: URLs?
  2. why do we need two distinct menu entries (Find and Go to coordinates)? In most other applications, there's just a single search entry, and coordinate pairs in a number of formats are automatically recognised.

@simonpoole
Copy link
Collaborator

The goto coordinate function already handles lots of different formats and that's why I'm wary of adding more complexity, but all of them are either simple string parsing or mathematical conversions that directly return coordinates.

The 'Find' function on the other hand geocodes addresses and names via external APIs and is not the same thing at all.

@jech
Copy link
Author

jech commented Nov 2, 2024

I see, thanks for your answer.

@simonpoole
Copy link
Collaborator

Currently I just think it is a bit of an edge case but I'll keep the request around.

@simonpoole simonpoole reopened this Nov 3, 2024
@simonpoole simonpoole changed the title No obvious way to point Vespucci at given coordinates Add support for geo: URI in "Goto coordinates..." ~~No obvious way to point Vespucci at given coordinates~~ Nov 3, 2024
@simonpoole simonpoole changed the title Add support for geo: URI in "Goto coordinates..." ~~No obvious way to point Vespucci at given coordinates~~ Add support for geo: URI in "Goto coordinates..." Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants