                         }
                     }
                 } catch {
-                    
+                    print("Exception found")
                 }
             }
         }
         task.resume() // start the request */
     }
-    
+
     // Called by mapview when adding new annotation
     func mapView(mapView: MKMapView, annotation: MapPin) -> MKPinAnnotationView {
         // Remove all annotations from the map view

                                let route:String = tripSub["route_id"] as! String
                                let lat:Double = positionSub["latitude"] as! Double
                                let long:Double = positionSub ["longitude"] as! Double
                                
                                // Create annotation from lattitude and longitude
                                let coord: CLLocationCoordinate2D = CLLocationCoordinate2D(latitude: lat, longitude: long)
                                let annotation = MapPin(coordinate: coord, title: "Route" + route, subtitle: "")
                                self.mapView.addAnnotation(annotation)
                                self.centerMapOnLocation(CLLocation(latitude: lat, longitude: long))
                                
                                print("Route ID: " + route)
                                print("Lat: " + String(lat))
                                print("Long:" + String(long))

        getData()
        var timer = NSTimer.scheduledTimerWithTimeInterval(10, target: self, selector: "getData", userInfo: nil, repeats: true)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    func getData() {
        let urlPath = "https://data.texas.gov/download/cuc7-ywmd/text/plain"
        let url:NSURL? = NSURL(string: urlPath)
        let session = NSURLSession.sharedSession()
        let task = session.dataTaskWithURL(url!) { (data, response, error) -> Void in
            if error != nil {
                print("error found")
            } else {
                do {
                    let jsonResult = try NSJSONSerialization.JSONObjectWithData(data!, options: NSJSONReadingOptions.MutableContainers) as? NSDictionary
