-
Notifications
You must be signed in to change notification settings - Fork 45
Home
mark padgham edited this page Oct 18, 2016
·
3 revisions
First get the raw XML text data from the overpass query:
bbox <- "(51.5,-0.1,51.52,-0.08)"
key <-'[highway]'
query <- paste0 ('(node', key, bbox, ';way', key, bbox, ';rel', key, bbox, ';')
url_base <- 'http://overpass-api.de/api/interpreter?data='
query <- paste0 (url_base, query,');(._;>;);out;')
dat <- httr::GET (query, timeout=60)
result <- httr::content (dat, "text", encoding='UTF-8')
Benchmarks then rely on both osmdatar
and overpass
to be loaded locally with devtools::load_all (pkg, export_all=TRUE)