lib/strava/api/endpoints/segments.rb
def explore_segments(options = {})
          throw ArgumentError.new('Required argument :bounds missing') if options[:bounds].nil?
          bounds = options[:bounds]
          bounds = bounds.map(&:to_s).join(',') if bounds.is_a?(Array)
          get('segments/explore', options.merge(bounds: bounds))['segments'].map do |row|
            Strava::Models::ExplorerSegment.new(row)
          end
        end
#
# Returns the top 10 segments matching a specified query.
#
# @option options [Array[Float]] :bounds
#   The latitude and longitude for two points describing a rectangular boundary for the search: [southwest corner latitude, southwest corner longitude, northeast corner latitude, northeast corner longitude].
# @option options [String] :activity_type
#   Desired activity type. May take one of the following values: running, riding.
# @option options [Integer] :min_cat
#   The minimum climbing category.
# @option options [Integer] :max_cat
#   The maximum climbing category.
#
Returns the top 10 segments matching a specified query.
Returns the top 10 segments matching a specified query .
def explore_segments(options = {})
          throw ArgumentError.new('Required argument :bounds missing') if options[:bounds].nil?
          bounds = options[:bounds]
          bounds = bounds.map(&:to_s).join(',') if bounds.is_a?(Array)
          get('segments/explore', options.merge(bounds: bounds))['segments'].map do |row|
            Strava::Models::ExplorerSegment.new(row)
          end
        end
def explore_segments ( options = { } ) throw ArgumentError . new ( 'Required argument :bounds missing' ) if options [ :bounds ] . nil? bounds = options [ :bounds ] bounds = bounds . map ( & :to_s ) . join ( ',' ) if bounds . is_a? ( Array ) get ( 'segments/explore' , options . merge ( bounds : bounds ) ) [ 'segments' ] . map do | row | Strava :: Models :: ExplorerSegment . new ( row ) end end
Returns the top 10 segments matching a specified query.
Returns the top 10 segments matching a specified query .
options
:max_cat The maximum climbing category.
: max_cat The maximum climbing category .