Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/geocode.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ geocode <- function(location, output = c("latlon", "latlona", "more", "all"),

# message/stop as neeeded
s <- sprintf("google restricts requests to %s requests a day for non-premium use.", limit)
if(length(location) > as.numeric(limit)) stop(s, call. = FALSE)
if(length(location) > as.numeric(limit) && !override_limit) stop(s, call. = FALSE)
if(length(location) > 200 && messaging) message(paste("Reminder", s, sep = " : "))

# geocode ply and out
Expand Down