get_latlon | R Documentation |
get latitude and longitude from Google polyline
get_latlon(polyline, key)
polyline |
a map polyline returned for an activity from the API |
key |
chr string of Google API key for elevation data, passed to |
dataframe of latitude and longitudes with a column for the unique identifier
Daniel Padfield, Marcus Beck
## Not run:
stoken <- httr::config(token = strava_oauth(app_name, app_client_id, app_secret, cache = TRUE))
my_acts <- get_activity_list(stoken)
acts_data <- compile_activities(my_acts)
# get lat and lon for a single activity
polyline <- acts_data$map.summary_polyline[[1]]
get_latlon(polyline, key = mykey)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.