The googleway::google_elevation function is used in get_latlon and no useful error message is returned if a user does not have the API enabled.
From #66:
# Get polyline and confirm its a straightforward character string
polyline<-my_actsDF$data[[1]]$map.summary_polyline
# Use google_elevation as per rStrava’s get_latlon to unpack polyline
googleway::google_elevation(polyline = polyline, key = mykey)
$error_message
[1] "This API project is not authorized to use this API."
$results
list()
$status
[1] "REQUEST_DENIED"
The googleway::google_elevation function is used in
get_latlon
and no useful error message is returned if a user does not have the API enabled.From #66: