I have a CSV file with 20,000 latitude/longitude coordinates. E.g. a sample:
lat lon
13.2 100.3
12.3 90.2
24.2 78.8
library(googleway)
google_streetview(
location = c(13.2, 100.3), # lat/lon coordinates
size = c(600, 400) # image size
Basically, I want the code above to use the lat/lon coordinates from the first row in the CSV file (which returns a Google Street View image of those coordinates), then loop back through the code and replace the lat/lon coordinates with the second line of the CSV file, and so on.
Does anybody know how to do this?