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

Link to nominatim including search query #3205

Open
andrewharvey opened this issue May 25, 2021 · 4 comments
Open

Link to nominatim including search query #3205

andrewharvey opened this issue May 25, 2021 · 4 comments
Labels
enhancement Improvements and new feature requests ui User Interface

Comments

@andrewharvey
Copy link
Contributor

andrewharvey commented May 25, 2021

Search results include "Results from OpenStreetMap Nominatim" which links to https://nominatim.openstreetmap.org/. To help mappers debug search results to determine if unexpected search results are OSM data issues or not, it can be handy to inspect the full search results output available at nominatim.openstreetmap.org.

To make this easier for mappers we should directly link including the search query, via https://nominatim.openstreetmap.org/ui/search.html?q=.

Either this URL could replace the "Results..." link or we could add another link "View search on Nominatim" at the bottom which includes the full query included link.

2021-07-02_11-22

@lectrician1
Copy link
Collaborator

Could you rewrite your the first sentence of your issue? It's really hard to understand what you're asking because it runs on.

@tomhughes
Copy link
Member

I understand perfectly well what he wants, but it's not that easy because we use the API so we never actually have the URL he's asking for.

@andrewharvey
Copy link
Contributor Author

Could you rewrite your the first sentence of your issue? It's really hard to understand what you're asking because it runs on.

I've tried to improve the readabality.

I understand perfectly well what he wants, but it's not that easy because we use the API so we never actually have the URL he's asking for.

Wouldn't it just be https://nominatim.openstreetmap.org/ui/search.html?q=${encodeURIComponent(query)} ?

@lonvia
Copy link
Contributor

lonvia commented Jul 2, 2021

The URL should include all parameters (including bbox and language) to get exactly the same result. You can simply use the API URL with format=xml replaced with format=html. There are redirects in place towards the UI.

@lectrician1 lectrician1 added enhancement Improvements and new feature requests ui User Interface labels Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements and new feature requests ui User Interface
Projects
None yet
Development

No branches or pull requests

4 participants