Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user to select the daily API call limit in authors_georef() #78

Open
embruna opened this issue Apr 13, 2021 · 1 comment
Open
Assignees

Comments

@embruna
Copy link
Collaborator

embruna commented Apr 13, 2021

authors_georef() currently has a hard-coded daily limit of 2500 google georeferencing API calls. Edit to allow users to choose their daily limit, with 2500 as the default.

@embruna embruna self-assigned this Apr 13, 2021
@embruna
Copy link
Collaborator Author

embruna commented Apr 13, 2021

This should do it.

authors_georef <- function(data,
  address_column = "address", max_daily=NULL) {

  options(ggmap = list(display_api_key = FALSE))
  if (!is.character(data$address)) {
    stop("Address columns are not characters,
    please change to characters and try again")

 if(!is.null(max_daily)) max_daily <- 2500
  }

Need to be sure and update throughout, including examples and vignette.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant