I am trying to convert many addresses to latitudes/longitudes using the httr package so I downloaded the map data from datasciencetoolkit.org and now am submitting a rather long POST/GET request to a local server at "http://localhost:8080/street2coordinates"
Here is the relevant code:
library(httr)
data2 <- paste0("[",paste(paste0("\"",data$address,"\""),collapse=","),"]")
url <- "http://localhost:8080/street2coordinates"
response <- POST(url,body=data2)
json <- fromJSON(content(response,type="text"))
For example, data2 has about 100,000 addresses in it. Is there a way to monitor how many requests have been sent as the request is being processed so that I can have some idea of when it will complete?
Thanks!