OpenStreetMapX.jl icon indicating copy to clipboard operation
OpenStreetMapX.jl copied to clipboard

overpassquery

Open salbert83 opened this issue 6 years ago • 1 comments

Is there a plan to add to your API something similar to overpassquery as was available in OpenStreetMap2? Thanks,

salbert83 avatar Oct 07 '18 15:10 salbert83

We use the library for numerical simulations on maps (rather then general map data processing). However, a pull request would be always welcome. The easiest way to achieve it would be to use contents of io.jl from OpenStreetMap2 and modify it to store output of the overpassquery to an osm file and subsequently load the file OpenStreetMapX.parseOSM() method. In this way overpassquery could be also independent from the OpenStreetMapX.

It would be nicer to do it on streams (rather than saving a file) - this however requires submitting a stream support pull request for JuliaIO/LibExpat.jl library (this actually would be very easy to do - just LibExpat.parsefile() method that opens a stream in its third line anyway needs a new parsestream() version ).

pszufe avatar Oct 07 '18 16:10 pszufe