     var longitude:Double = 0;
     var busDict = [String:AnyObject]()
     
+    
     var stopLat:  Double = 0  //lattitude for selected stop
     var stopLong: Double = 0 //longitude for selected stop
     var stopName: String = ""
+    var stopAnnotation: StopPointAnnotation!
     
     @IBOutlet weak var mapView: MKMapView!
     override func viewDidLoad() {

                    if jsonResult != nil {
                        if let allEntities = jsonResult!["entity"] as? NSArray {
                            if(allEntities.count > 0) {
                                print(allEntities)
                                // Populate busDict
                                for bus in allEntities{
                                    

        dispatch_async(dispatch_get_main_queue(), {
            let coord: CLLocationCoordinate2D = CLLocationCoordinate2D(latitude: self.stopLat, longitude: self.stopLong)
            //let annotation = StopAnnotation(coordinate: coord, title: "Stop " + self.stopName, subtitle: "")
            self.stopAnnotation = StopPointAnnotation(coordinate: coord, title: "Stop at " + self.stopName, subtitle: "", img: "location-pin.png")
            //self.mapView.removeAnnotations(self.mapView.annotations)
            self.mapView.addAnnotation(self.stopAnnotation)
            print("after add stop annotation")
            self.centerMapOnLocation(CLLocation(latitude: self.stopLat, longitude: self.stopLong)) //consider centering on stop instead
        })
