I try to capture the info in a list on r when I'm using page_token in google_places
In general the short code is functional, but I can see in google.maps 65 results, and my code just return me 60 results.
key_word = 'McDonalds Bogota'
res <- google_places(search_string = key_word)
info <- list(res)
while (res$status == 'OK') {
Sys.sleep(1.5)
res <- google_places(search_string = '',
page_token = res$next_page_token)
info <- c(info,list(res))
}
I obtain a list with complete information in info[[1]], info[[2]] and info[[3]], but when I see info[[4]] I get status INVALID_REQUEST, so I want to see the final 5 observations in info[[4]] but I could not to do this