 }
 
 class DateformatterManager {
-    var formatter = NSDateFormatter()
+    var formatter = DateFormatter()
     
     class var dateFormatManager : DateformatterManager {
         struct Static {

import Foundation

public enum TransportationType {
    case Bus, Ferry, Subway, Tram, Train
    
    func parameter()->String {
        
        switch self {
        case .Bus: return "byBus"
        case .Ferry: return "byFerry"
        case .Subway: return "bySubway"
        case .Tram: return "byTram"
        case .Train: return "byTrain"
        }
    }
    
    public static func all() -> Array<TransportationType> {
        return [.Bus, .Ferry, .Subway, .Tram, .Train]
    }
}

public class Station:NSObject {
    var locationID:String = ""
    var stationType:String = ""
    var name:String = ""

        return string
    }
    
    open class func performRequest(_ url:URL, POSTparameters params:[String:String])  -> AnyObject? {
        
        let request = NSMutableURLRequest(url: url as URL)
        
        if params.keys.count > 0 {
            request.httpMethod = "POST"
            request.httpBody = OV9292API.paramterStringWithKeys(params).data(using: String.Encoding.ascii, allowLossyConversion: true)
        } else {
            request.httpMethod = "GET"
        }
        
        let session = URLSession.shared
        
        var finished = false
        var obj:AnyObject?
        
        let task = session.dataTask(with: request as URLRequest) { data,response, error in
            
            if error == nil {

                do {
                    
                    
                    print(NSString(data: data!, encoding: String.Encoding.utf8.rawValue) as! String)
                    
                    obj = try JSONSerialization.jsonObject(with: data!, options: JSONSerialization.ReadingOptions.allowFragments) as AnyObject
                    
                } catch {}
            }
