Error in encode_locations(origins) : object 'encoded' not found
this error msg was generated when I try to use MapsApi package in Rstudio to calculate the driving time, below is what I tried to put in... ...
locations <- experiment_api_Sheet1
doc = mp_matrix(origins = locations, destinations = "10019", mode = "driving",
departure_time = Sys.time() + as.difftime(1, units = "mins"),
key = readLines("~/key"))