Skip to main content
Question

How to get all segments from a Route in the API?


Forum|alt.badge.img+2

Hello all, 


In our cotacol (Belgian) app, we are leveraging Strava Segments so our members can "collect" different hills in Belgium.  Those hills match one:one with a Strava Segment. 


Now, I am building a functionality, so that users can select one of their Routes and get to see which of the 1000 segments that would be conquored with that Route...


However, just like the default behavior with an activity, it seems not all the routes are returned in the response for a Strava Route.  And I am wondering if there is a similar query string parameter we can use, to indicate we need all segments in the response.  (just like include_all_efforts with the GetActivity operation).


What I am doing now: 


- GET /routes/{routeId}


This only returns a subset of the segments in the payload.


 


 

2 replies

Forum|alt.badge.img
  • Hub Starter
  • 1 reply
  • August 2, 2023

Also interested in this. Looking to return all segments in a bounding box, not just the top 10.


Forum|alt.badge.img+2

Same issue for me, returns a subset of around 25 segments but in Strava it shows double that for the same route.  In GetActivity there’s the option to set include_all_efforts=True but it looks like nothing similar for GetRoute.

Would be awesome if anybody from Strava could comment on this.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept, you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings