Skip to content

Commit c6fbdb2

Browse files
committed
add message to large geocodes
1 parent e8b5753 commit c6fbdb2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/search.R

+2
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ mb_batch_geocode <- function(
336336
"i" = "The limit for Mapbox's free tier is 100,000 geocodes per month. Beyond that, you will incur charges.",
337337
"i" = "Please visit https://www.mapbox.com/pricing for more information."))
338338
} else {
339+
rlang::inform("The default rate limit for Mapbox's batch geocoder is 1,000 requests per minute. `mb_batch_geocode()` uses this limit to complete your request.")
340+
339341
mb_batch_geocode_limited <- purrr::slowly(mb_batch_geocode, rate = rate_delay(60))
340342

341343
data$ix <- c(0, rep(1:(nrow(data) - 1) %/% 1000))

0 commit comments

Comments
 (0)