-
Notifications
You must be signed in to change notification settings - Fork 45
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
[FEATURE] Add "PRO" features: custom queries #252
Comments
Thanks @Mashin6. For you first question, there is the the Your second question is interesting, but may be hard to generalise. I'll think about it and report back - feel free to add any thoughts in the meantime about how you think this might be generalised. |
Oh cool. I didn't realize To be honest this is quite advanced use of OP and there are many ways
If you would want to go further and generalize for multiple tags this gets more complicated.
Perhaps the order in of tags in Off topic: Just out of curiosity, why did you decide to use |
Thanks @Mashin6 - I actually think we'll be able to get somewhere with this As for your Off topic Q: The honest reason is because the original implementation had only piping == AND operations and there was no way to OR-combine. That got addressed by #237, which kind-of explains why it was designed that way: the OR queries involve submitting all |
Awesome! Thanks for looking into that. I see. The reason I find it confusing is that This would also allow to run more complex queries like to retrieve broad leaved trees, benches and parks with "public" in their name:
this would be translate to OP query:
|
I very much agree that the current design is counter-intuitive, but flipping it like that would be quite the breaking change! Maybe something for a 1.0 version? |
First of all, awesome job with parsing OSM data and making use of overpass user friendly!
Although most of the use cases are just a simple filter queries, I think it would be useful to have an option to write custom queries in overpass QL and pass it to functions like
osmdata_sf
. Right now I have to do it the hacky way by modifying$prefix
and$features
inoverpass_query
object.Second, would be to add function
osmdata_df()
that would parse the OP output into regular data.frame object. That way queries like this, which return csv format would possible. This would allow afterwards doingleft_join
on data fromosmdata_sf()
query to have super simple way of e.g. plot count statistics per area object.The text was updated successfully, but these errors were encountered: