Is there a limit of origin/destination pairs for googleway.distance? I tested on a few locations and got it worked:
google_distance(origins = c(38.90826, -78.20459), destinations = c(38.899799, -77.02137),
mode = c("driving", "walking", "bicycling", "transit"),
key = api_key)
But once I switched to using 2 data frames for origins and destinations (114 elements each), I got this error:
Error: lexical error: invalid char in json text.
https://maps.googleapis.com/map
(right here) ------^
However, the code worked well for 2 data frames of 10 elements each. How many pairs am I allowed to query? I have about 300 origin/destination pairs in total, how can I get this done quickly and conveniently?