I need to find the travel time between a given point for which I know latitude and longitude values and a series of points contained in the column of a dataframe (for which I also know the longitude and the latitude). I used the following code line:
distances_driving <-gmapsdistance(origin = CZ10$API , destination = "49.9919662993+14.6579083484",mode = "driving")
CZ10 is my dataframe, API is the column containing the values needed in the format "longitude+latitude".
When running the code, I get the following error:
StartTag: invalid element name
Error: 1: StartTag: invalid element name
What might cause this?