Strava v0.4.1 Strava.Route View Source

Routes are manually-created paths made up of sections called legs. Currently it is only possible to create routes using the Routebuilder web interface. https://strava.github.io/api/v3/routes/

Link to this section Summary

Functions

Lists a specific athlete’s routes. Private routes will only be included if the authenticating user is viewing their own routes and the token has view_private permissions. Doesn’t support pagination

Parse the map and dates in the route

Retrieve details about a specific route

Link to this section Types

Link to this type t() View Source
t() :: %Strava.Route{athlete: Strava.Athlete.Summary.t(), description: String.t(), distance: float(), elevation_gain: float(), id: number(), map: Strava.Map.t(), name: String.t(), private: boolean(), resource_state: number(), segments: [Strava.Segment.t()], starred: boolean(), sub_type: number(), timestamp: NaiveDateTime.t(), type: number()}

Link to this section Functions

Link to this function list_routes(athlete_id, client \\ Strava.Client.new()) View Source
list_routes(integer(), Strava.Client.t()) :: [Strava.Route.t()]

Lists a specific athlete’s routes. Private routes will only be included if the authenticating user is viewing their own routes and the token has view_private permissions. Doesn’t support pagination.

Example

Strava.Segment.list_routes(3920819)

More info: https://strava.github.io/api/v3/routes/#list

Parse the map and dates in the route

Link to this function retrieve(id, client \\ Strava.Client.new()) View Source
retrieve(integer(), Strava.Client.t()) :: Strava.Route.t()

Retrieve details about a specific route.

Example

Strava.Route.retrieve(2751038)

More info: https://strava.github.io/api/v3/routes/#retrieve