osm-request icon indicating copy to clipboard operation
osm-request copied to clipboard

Load data via overpass and parse via osm-request

Open tordans opened this issue 6 years ago • 1 comments

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 :).

tordans avatar Jul 18 '19 05:07 tordans

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 avatar Jul 18 '19 07:07 PanierAvide