 
 import Foundation
 import Alamofire
+
+// Easy way of getting a URL fit version of a string from itself
+private extension String {
+	var URLEscapedString: String {
+		return self.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLHostAllowedCharacterSet())!
+	}
+}
 
 class ConnectionManager {
 


	func update(callback: () -> Void) {
		if let vz = stopDict[selectedStop] {
			let requestURL = "http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?hst=\(cleanupURLString(selectedStop))&lim=30&vz=\(vz)"
//			NSLog(requestURL)
			Alamofire.request(.GET, requestURL)
				.responseJSON { (_, _, JSON, error) in

		selectedConnection = c
	}

}
