forked from dwj300/strava
-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_summary_segment.go
41 lines (39 loc) · 1.45 KB
/
model_summary_segment.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Strava API v3
*
* Strava API
*
* API version: 3.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package strava
type SummarySegment struct {
// The unique identifier of this segment
Id int64 `json:"id,omitempty"`
// The name of this segment
Name string `json:"name,omitempty"`
ActivityType string `json:"activity_type,omitempty"`
// The segment's distance, in meters
Distance float32 `json:"distance,omitempty"`
// The segment's average grade, in percents
AverageGrade float32 `json:"average_grade,omitempty"`
// The segments's maximum grade, in percents
MaximumGrade float32 `json:"maximum_grade,omitempty"`
// The segments's highest elevation, in meters
ElevationHigh float32 `json:"elevation_high,omitempty"`
// The segments's lowest elevation, in meters
ElevationLow float32 `json:"elevation_low,omitempty"`
StartLatlng *LatLng `json:"start_latlng,omitempty"`
EndLatlng *LatLng `json:"end_latlng,omitempty"`
// The category of the climb
ClimbCategory int32 `json:"climb_category,omitempty"`
// The segments's city.
City string `json:"city,omitempty"`
// The segments's state or geographical region.
State string `json:"state,omitempty"`
// The segment's country.
Country string `json:"country,omitempty"`
// Whether this segment is private.
Private bool `json:"private,omitempty"`
AthletePrEffort *SummarySegmentEffort `json:"athlete_pr_effort,omitempty"`
}