Have an R script to run a bunch of different points for commute time and distance. Have a google API key with an enabled billing account, go to run and get shut down at line 262 every time.
Tried restructuring the code. Refreshed the API Set the API key in different parts
Code works perfect up to that point, and it is making a connection with google as it is showing in the API.
emp_commute$CommuteTime[i] <- gmapsdistance(origin = emp_commute$HomeComplete[i],
destination = emp_commute$WorkComplete[i],
mode = "driving",
key = "",
arr_date = "2019-11-13",
arr_time = emp_commute$ArrivalTime[i])$Time[1]
Error in gmapsdistance(origin = emp_commute$HomeComplete[i], destination = emp_commute$WorkComplete[i], : Google API returned an error: You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account
Googled and googled, just would love some advice!