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

[question] overpass expressions? #708

Closed
govvin opened this issue Oct 27, 2024 · 7 comments
Closed

[question] overpass expressions? #708

govvin opened this issue Oct 27, 2024 · 7 comments

Comments

@govvin
Copy link

govvin commented Oct 27, 2024

I just noticed how you can try to find some cool features thru the searchbox.

For example historic=, to show features in the viewport that's been tagged with historic=

How do I combine this, for example: historic=* and tourism=* to find any feature having both tags?

@govvin govvin changed the title [question} overpass expressions? [question] overpass expressions? Oct 27, 2024
@Dlurak
Copy link
Collaborator

Dlurak commented Oct 27, 2024

If you are only interested in one key you can enter key=* or key=
For a key value pair you can use key=value
For anything more complex then that you can create a custom query with the prefix op:
It will be inserted into this overpass query:

[out:json][timeout:25][bbox:bbox];
(
	${query};
);
out geom qt;

So for your usecase of finding historic=* and tourism=* you need to enter this:

op:nwr[historic][tourism]

Update: I did implement the historic=* and tourism=* way of doing things and now that is also supported

@Dlurak
Copy link
Collaborator

Dlurak commented Oct 27, 2024

As an idea for the future:
We could start to support the syntax of the overpass query wizard, e.g. historic=* and tourism=*

@govvin
Copy link
Author

govvin commented Oct 27, 2024

While trying out that expression, I wonder whether in the future it would be possible to export the results as a GPX, or KMZ (among other formats) that can then be saved and used in the user's phone (e.g. OsmAnd or Organic Maps).

Not sure if that's in scope, but an example use case might be: a user visiting an area, and wondering what historic buildings they can try to visit.

@Dlurak
Copy link
Collaborator

Dlurak commented Oct 27, 2024

I don't think this falls in this projects scopes, afterall there is overpass turbo if you need that.
Potentially we could put a download link into the green toast that appears after a successful request.

@jvaclavik
Copy link
Collaborator

I don't think this falls in this projects scopes, afterall there is overpass turbo if you need that.

Potentially we could put a download link into the green toast that appears after a successful request.

Wild idea: We could connect searchbox with AI to generate overpass queries easily 😀

@govvin
Copy link
Author

govvin commented Oct 28, 2024

Or, make it possible to easily share queries that will run based on users location?

Based on a conversation here: https://social.tchncs.de/@[email protected]/113378997818523843

@Dlurak
Copy link
Collaborator

Dlurak commented Oct 30, 2024

I think we can close it, your question is answered and now the new query wizard is also implemented.
Feel free to reopen :)

@Dlurak Dlurak closed this as completed Oct 30, 2024
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

3 participants