 	- parameter toDate:     date object when the data should end
 	- parameter completion: handler
 	*/
-	static func sendForecastRequest(lotID: String, fromDate: NSDate, toDate: NSDate, completion: (data: [NSDate: Int]) -> ()) {
-
+	static func sendForecastRequest(lotID: String, fromDate: NSDate, toDate: NSDate, completion: (SCResult<[NSDate: Int], SCError>) -> Void) {
 		let dateFormatter = NSDateFormatter()
 		dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss"
 		let fromDateString = dateFormatter.stringFromDate(fromDate)

			"to": toDateString
		]

		Alamofire.request(.GET, Const.apibaseURL + "/Dresden/\(lotID)/timespan", parameters: parameters).responseJSON { (_, res, jsonData, err) -> Void in
			if err == nil && res?.statusCode == 200 {

				let data = JSON(jsonData!)["data"].dictionaryValue
				var parsedData = [NSDate: Int]()

				for (date, load) in data {
					if let parsedDate = dateFormatter.dateFromString(date) {
						parsedData[parsedDate] = load.intValue
					}
				}
				
				completion(data: parsedData)

			} else if err != nil && res?.statusCode == 200 {
				NSLog("Error: \(err?.localizedDescription)")
			} else {
				println(res?.statusCode)
			}
		}
	}


			"addressdetails": 1
		]

		Alamofire.request(.GET, URL.nominatimURL + "reverse", parameters: parameters).validate().responseJSON { (_, response, result) -> Void in
			print(result.value)
		}
	}
}
