Learn R Programming

rStrava (version 1.0.0)

get_latlon: get latitude and longitude from Google polyline

Description

get latitude and longitude from Google polyline

Usage

get_latlon(x)

Arguments

x

the dataframe that contains the Strava activity data

Value

dataframe of latitude and longitudes with a column for the unique identifier

Examples

Run this code
# 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
get_latlon(acts_data[1,])
# }

Run the code above in your browser using DataLab