Documentation ¶
Overview ¶
Package api implements Runtastic API for downloading activity data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
Activity contains metadata and collection of data points for single activity.
func GetActivities ¶
GetActivities retrieves GPS traces for all available activities.
func GetActivity ¶
GetActivity downloads GPS trace of an activity with given ID.
type ActivityID ¶
type ActivityID string
ActivityID is unique activity identifier.
func GetActivityIDs ¶
func GetActivityIDs(ctx context.Context, session *Session) ([]ActivityID, error)
GetActivityIDs returns list of IDs of all activities that have GPS trace available.
type DataPoint ¶
type DataPoint struct { Longitude float32 Latitude float32 Elevation float32 Time time.Time SpeedKPH float32 Elapsed time.Duration Distance int32 ElevationGain int16 ElevationLoss int16 HeartRate *uint8 }
DataPoint represents single data point with GPS and heart rate data.
Click to show internal directories.
Click to hide internal directories.