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

implement basic OSM types and option to return them #148

Open
mvexel opened this issue Mar 23, 2022 · 3 comments
Open

implement basic OSM types and option to return them #148

mvexel opened this issue Mar 23, 2022 · 3 comments
Milestone

Comments

@mvexel
Copy link
Owner

mvexel commented Mar 23, 2022

Right now we return raw-ish data (JSON / dict, GeoJSON, CSV) which is fine but puts the burden of parsing it into OSM features on the user. Since extracting OSM features is the first thing anyone would probably want to do, it would seem to make sense to implement basic OSM types (Node, Way, Relation) and offer the option to return collections of those instead.

We could borrow from https://github.com/osmlab/osmdiff/blob/master/src/osmdiff/osm/osm.py

(As a bonus, these already implement __geo_interface__, see #147)

@mvexel
Copy link
Owner Author

mvexel commented Oct 14, 2022

I updated osmdiff recently and the __geo_interface__ interfaces are in better shape now. They still require some testing, especially relations.

I'd love to consider this for the next point version.

@Vectorial1024
Copy link

I noticed another Python library overpy, it seems to provide some basic util functions to loop over overpass results. Would overpy be good enough for this?

@mvexel
Copy link
Owner Author

mvexel commented Jun 26, 2024

I don't know about overpy more that that it offers comparable functionality to this library. If it fits your use case, by all means go ahead and use that (for now)!

@mvexel mvexel added this to the 0.8 milestone Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants