stravalib.client.Client.explore_segments

Client.explore_segments(bounds, activity_type=None, min_cat=None, max_cat=None)[source]

Returns an array of up to 10 segments.

https://developers.strava.com/docs/reference/#api-Segments-exploreSegments

Parameters
  • bounds (list of 4 floats or list of 2 (lat,lon) tuples) – list of bounding box corners lat/lon [sw.lat, sw.lng, ne.lat, ne.lng] (south,west,north,east)

  • activity_type (str) – (optional, default is riding) ‘running’ or ‘riding’

  • min_cat (int) – (optional) Minimum climb category filter

  • max_cat (int) – (optional) Maximum climb category filter

Returns

An list of stravalib.model.Segment.

Return type

list