Issue OSM Overpass Query
overpass_query(query, quiet = FALSE, wait = TRUE)
TRUE.TRUE and if there is a queue at the Overpass API server, should
this function wait and try again at the next available slot time or should it
throw a an exception?If the query result only has OSM nodes then the function
will return a SpatialPointsDataFrame with the nodes.
If the query result has OSM ways then the function
will return a SpatialLinesDataFrame with the ways
relationss are not handled yet.
If you asked for a CSV, you will receive the text response back, suitable for
processing by read.table(text=..., sep=..., header=TRUE, check.names=FALSE,
stringsAsFactors=FALSE).
wrap function with httr::with_verbose if you want to see the httr
query (useful for debugging connection issues).
You can disable progress bars by calling pbapply::pboptions(type="none") in your
code. See pboptions for all the various progress bar settings.
## Not run: ------------------------------------ # only_nodes <- '[out:xml]; # node # ["highway"="bus_stop"] # ["shelter"] # ["shelter"!~"no"] # (50.7,7.1,50.8,7.25); # out body;' # # pts <- overpass_query(only_nodes) ## ---------------------------------------------