def get_dewpoints(start_date, end_date, location)
      response = get_planner_response(start_date, end_date, location)
      return response['response']['error'] unless response['response']['error'].nil?
      highs = response['trip']['dewpoint_high']
      lows = response['trip']['dewpoint_low']

      {
        high: {
          imperial: {
            minimum: highs['min']['F'].to_i,
            maximum: highs['max']['F'].to_i,
            average: highs['avg']['F'].to_i
          },
          metric: {
            minimum: highs['min']['C'].to_i,
            maximum: highs['max']['C'].to_i,
            average: highs['avg']['C'].to_i
          }
        },
        low: {
          imperial: {
            minimum: lows['min']['F'].to_i,
            maximum: lows['max']['F'].to_i,
            average: lows['avg']['F'].to_i
          },
          metric: {
            minimum: lows['min']['C'].to_i,
            maximum: lows['max']['C'].to_i,
            average: lows['avg']['C'].to_i
          }
        }
      }
    end
def get_dewpoints(start_date, end_date, location)
      response = get_planner_response(start_date, end_date, location)
      return response['response']['error'] unless response['response']['error'].nil?
      highs = response['trip']['dewpoint_high']
      lows = response['trip']['dewpoint_low']

      {
        high: {
          imperial: {
            minimum: highs['min']['F'].to_i,
            maximum: highs['max']['F'].to_i,
            average: highs['avg']['F'].to_i
          },
          metric: {
            minimum: highs['min']['C'].to_i,
            maximum: highs['max']['C'].to_i,
            average: highs['avg']['C'].to_i
          }
        },
        low: {
          imperial: {
            minimum: lows['min']['F'].to_i,
            maximum: lows['max']['F'].to_i,
            average: lows['avg']['F'].to_i
          },
          metric: {
            minimum: lows['min']['C'].to_i,
            maximum: lows['max']['C'].to_i,
            average: lows['avg']['C'].to_i
          }
        }
      }
    end
Gets the dewpoint highs and lows for the date range.
 @param (see #get_planner_response)
 @return [Hash<Symbol, Hash<Symbol, Hash<Symbol, Integer>>>] Highs and lows minimum, average, and maximum for both
   metric and imperial systems.
 @return [String] The error if possible.
 @todo Raise an error instead of returning a String.