 	- parameter completion: handler that is provided with a list of supported cities or an error wrapped in an SCResult
 	*/
 	static func sendMetadataRequest(completion: (SCResult<[String: String], SCError>) -> Void) {
+		let metadataURL = SCOptions.useStagingAPI ? URL.apiBaseURLStaging : URL.apiBaseURL
 		UIApplication.sharedApplication().networkActivityIndicatorVisible = true
-		let metadataURL = SCOptions.useStagingAPI ? URL.apiBaseURLStaging : URL.apiBaseURL
 		Alamofire.request(.GET, metadataURL).responseJSON { (_, response, result) -> Void in
-			defer { UIApplication.sharedApplication().networkActivityIndicatorVisible = false }
+			UIApplication.sharedApplication().networkActivityIndicatorVisible = false
 			guard let response = response else { completion(.Failure(SCError.Request)); return }
 			guard response.statusCode == 200 else { completion(.Failure(SCError.Server)); return }
 			guard let data = result.value else { completion(.Failure(SCError.Server)); return }

			"addressdetails": 1
		]

		Alamofire.request(.GET, Const.nominatimURL + "reverse", parameters: parameters).validate().responseJSON { (_, res, jsonData, err) -> Void in
			let json = JSON(jsonData!)
			completion(address: json["address"]["road"].stringValue + " " + json["address"]["city"].stringValue)
		}
	}
}

			"to": toDateString
		]

		UIApplication.sharedApplication().networkActivityIndicatorVisible = true
		let forecastURL = SCOptions.useStagingAPI ? URL.apiBaseURLStaging + "/Dresden/\(lotID)/timespan" : URL.apiBaseURL + "/Dresden/\(lotID)/timespan"
		Alamofire.request(.GET, forecastURL, parameters: parameters).responseJSON { (_, response, result) -> Void in
			UIApplication.sharedApplication().networkActivityIndicatorVisible = false
			guard let response = response else { completion(.Failure(SCError.Request)); return }
			guard response.statusCode == 200 else { completion(.Failure(SCError.Server)); return }
			guard let data = result.value else { completion(.Failure(SCError.Server)); return }
			let jsonData = JSON(data)["data"].dictionaryValue

			var parsedData = [NSDate: Int]()

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

			completion(.Success(parsedData))
		}
	}

