From 65908864973972077ef1f558a1a5a97f0355239f Mon Sep 17 00:00:00 2001 From: Piotr Szmyt Date: Thu, 4 Sep 2014 10:41:38 +0200 Subject: [PATCH] Fixed method used to get closest trends. --- Swifter/SwifterTrends.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Swifter/SwifterTrends.swift b/Swifter/SwifterTrends.swift index 21fdc330..43866b32 100644 --- a/Swifter/SwifterTrends.swift +++ b/Swifter/SwifterTrends.swift @@ -70,14 +70,14 @@ public extension Swifter { A WOEID is a Yahoo! Where On Earth ID. */ - public func getTrendsClosestWithLat(lat: Int, long: Int, success: ((trends: [JSONValue]?) -> Void)?, failure: FailureHandler?) { + public func getTrendsClosestWithLat(lat: Double, long: Double, success: ((trends: [JSONValue]?) -> Void)?, failure: FailureHandler?) { let path = "trends/closest.json" var parameters = Dictionary() parameters["lat"] = lat parameters["long"] = long - self.getJSONWithPath(path, baseURL: self.apiURL, parameters: [:], uploadProgress: nil, downloadProgress: nil, success: { + self.getJSONWithPath(path, baseURL: self.apiURL, parameters: parameters, uploadProgress: nil, downloadProgress: nil, success: { json, response in success?(trends: json.array)