def get_precipitation(start_date, end_date, location)
      response = get_planner_response(start_date, end_date, location)
      return response['response']['error'] unless
        response['response']['error'].nil?
      min = response['trip']['precip']['min']
      avg = response['trip']['precip']['avg']
      max = response['trip']['precip']['max']

      {
        minimum: {
          inch: min['in'].to_i,
          centimeter: min['cm'].to_i
        },
        maximum: {
          inch: max['in'].to_i,
          centimeter: max['cm'].to_i
        },
        average: {
          inch: avg['in'].to_i,
          centimeter: avg['cm'].to_i
        }
      }
    end
def get_precipitation(start_date, end_date, location)
      response = get_planner_response(start_date, end_date, location)
      return response['response']['error'] unless
        response['response']['error'].nil?
      min = response['trip']['precip']['min']
      avg = response['trip']['precip']['avg']
      max = response['trip']['precip']['max']

      {
        minimum: {
          inch: min['in'].to_i,
          centimeter: min['cm'].to_i
        },
        maximum: {
          inch: max['in'].to_i,
          centimeter: max['cm'].to_i
        },
        average: {
          inch: avg['in'].to_i,
          centimeter: avg['cm'].to_i
        }
      }
    end
Gets the precipitation amounts (not chance) for the date range.
 @see #get_planner_response
 @return [Hash<Symbol, Hash<Symbol, Integer>>] Minimum, maximum, and average precipitation quantities for
   the location in both inches and centimeters.
 @return [String] The error if possible.
 @todo Raise an error instead of returning a String.