Skip to content

Commit a932df2

Browse files
jannesclaude
andcommitted
Increase OSM download sleep time to avoid rate limiting
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent de8595b commit a932df2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

14-location.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ To make it available in your environment, run `data("shops", package = "spDataLa
309309
shops = purrr::map(metro_names, function(x) {
310310
message("Downloading shops of: ", x, "\n")
311311
# give the server a bit time
312-
Sys.sleep(sample(seq(5, 10, 0.1), 1))
312+
Sys.sleep(sample(seq(10, 15, 0.1), 1))
313313
query = osmdata::opq(x) |>
314314
osmdata::add_osm_feature(key = "shop")
315315
points = osmdata::osmdata_sf(query)

0 commit comments

Comments
 (0)