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
Allow Overpass Turbo features in Overpass query #256
Comments
|
Yup, that seems to work. At least it's building tasks now. :) But woudn't it be good to be able to just copy any query from Overpass Turbo? E.g. JOSM has no problem with {{geocodeArea}}, so it should be possible. Any such problem will stop 80% of new users from creating a challenge. Will you treat as a feature request? |
You could use Export —> query —> copy standalone query, which automatically replaces those moustache tags for you. Josm has reimplemented the same logic in Java, afaik. Otherwise {{}} Syntax is not something Overpass API understands on its own. |
"Moustache tags" :D Thanks @mmd-osm |
Ah that was the french spelling... should be like in here http://mustache.github.io/ |
So we could improve the instructions on the relevant Challenge wizard page to say that if you're using Overpass Turbo:
On top of that we could add some simple regex detection |
@mmd-osm no no I wasn't making fun of the spelling, I just thought it was a really funny name for these types of placeholder tags! |
It would be better to accept Overpass Turbo syntax, especially if exporting standalone query not always works (the Safari case) but if it's not possible or too hard, then yes, instruction and detection is acceptable solution, as long as it tells the user what to do instead of leaving him with a cryptic error message. |
Copy as standalone query requires access to the clipboard. If that doesn't work for whatever reason, there's still Download as standalone query. Here's a link to the respective JOSM implementation. |
As long as the user gets clear instructions, it's OK with me. |
Basic validation of Overpass queries. Closes #256
With PR #289, an informative error message will be displayed if Overpass Turbo query shortcuts are used. It'll be in the beta.5 release. |
Overpass query:
returns:
The text was updated successfully, but these errors were encountered: