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

Load data via overpass and parse via osm-request #11

Open
tordans opened this issue Jul 18, 2019 · 1 comment
Open

Load data via overpass and parse via osm-request #11

tordans opened this issue Jul 18, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@tordans
Copy link

tordans commented Jul 18, 2019

Hi @PanierAvide, is there a way to fetch data from an overpass like query?
Something like fetchMapByBbox but with a search or filter param that will request less data?

Or maybe the other way around, is there a way to do the request to overpass outside this library, but then parse the response xml with osm-request so I get a nice object representation for the data which I can continue working with?

Thanks

Disclaimer: I am new to this :).

@PanierAvide
Copy link
Collaborator

Hello, thanks for this question. As now, it is not directly possible to do so. You have to retrieve the whole data for an area, and then filter manually. Filtering can be done more simply using osmtogeojson library, which can transform OSM XML data we retrieve into a GeoJSON feature collection.

However, this is obviously a nice-to-have feature, and it would be great to see this implemented ;-)

@PanierAvide PanierAvide added the enhancement New feature or request label Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants