/
model_route.go
37 lines (35 loc) · 1.94 KB
/
model_route.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
/*
* Strava API v3
*
* The [Swagger Playground](https://developers.strava.com/playground) is the easiest way to familiarize yourself with the Strava API by submitting HTTP requests and observing the responses before you write any client code. It will show what a response will look like with different endpoints depending on the authorization scope you receive from your athletes. To use the Playground, go to https://www.strava.com/settings/api and change your “Authorization Callback Domain” to developers.strava.com. Please note, we only support Swagger 2.0. There is a known issue where you can only select one scope at a time. For more information, please check the section “client code” at https://developers.strava.com/docs.
*
* API version: 3.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package strava
type Route struct {
Athlete *SummaryAthlete `json:"athlete,omitempty"`
// The description of the route
Description string `json:"description,omitempty"`
// The route's distance, in meters
Distance float32 `json:"distance,omitempty"`
// The route's elevation gain.
ElevationGain float32 `json:"elevation_gain,omitempty"`
// The unique identifier of this route
Id int32 `json:"id,omitempty"`
Map_ *PolylineMap `json:"map,omitempty"`
// The name of this route
Name string `json:"name,omitempty"`
// Whether this route is private
Private bool `json:"private,omitempty"`
// Whether this route is starred by the logged-in athlete
Starred bool `json:"starred,omitempty"`
// An epoch timestamp of when the route was created
Timestamp int32 `json:"timestamp,omitempty"`
// This route's type (1 for ride, 2 for runs)
Type_ int32 `json:"type,omitempty"`
// This route's sub-type (1 for road, 2 for mountain bike, 3 for cross, 4 for trail, 5 for mixed)
SubType int32 `json:"sub_type,omitempty"`
// The segments traversed by this route
Segments []SummarySegment `json:"segments,omitempty"`
}