Hello,
I am trying to geocode an address using the Google API and R. So far, I have
used the following code:
location<-c('120 Avenue de la Republique, 92120 Montrouge, France')
location <- gsub(' ', '+', location)
sensor<-c('FALSE')
sensor4url <- paste('sensor=', tolower(as.character(sensor)), sep =
'')
posturl <- paste(location, sensor4url, sep = '&')
url_string <-
paste('http://maps.googleapis.com/maps/api/geocode/json?address=',
posturl, sep = "")
url_string <- URLencode(url_string)
gc <- fromJSON(paste(readLines(url(url_string)), collapse = ''))
gc
The above code has worked just fine for up to 2500 Google queries per day (which
are free). My question: how can I modify the above code to insert a Google
client ID and/or crypto key so as to run >2500 queries? Adding a
'client=...' and/or 'key=...' in the posturl line above does not
seem to do the trick.
Thanks in advance,
fv
CONFIDENTIALITY NOTICE This e-mail message and any attac...{{dropped:11}}