 
                     } else {
                         self?.searchedMapItems = searchedMapItems
-
-                        //self?.mapView.removeAnnotations(self?.searchedLocationPins)
                     }
-
-                    /*
-                    var searchedLocationPins = [LocationPin]()
-
-                    for item in searchedMapItems {
-                        let pin = LocationPin(title: "Pin", subtitle: "User Searched Location", coordinate: item.placemark.location.coordinate)
-                        self?.mapView.addAnnotation(pin)
-
-                        searchedLocationPins.append(pin)
-                    }
-
-                    if needAppend {
-                        self?.searchedLocationPins += searchedLocationPins
-                    } else {
-                        self?.searchedLocationPins = searchedLocationPins
-                    }*/
                 }
             }
         }

    }

    var pickedLocationIndexPath: NSIndexPath?
//    var pickedLocationCoordinate: CLLocationCoordinate2D? {
//        willSet {
//            if let coordinate = newValue {
//                updateLocationPinWithCoordinate(coordinate)
//            }
//        }
//    }
//
//    var selectedLocationCoordinate: CLLocationCoordinate2D? {
//        willSet {
//            if let coordinate = newValue {
//                updateLocationPinWithCoordinate(coordinate)
//            }
//        }
//    }

    override func viewDidLoad() {
        super.viewDidLoad()

            let region = MKCoordinateRegionMakeWithDistance(locationPin.coordinate, 200, 200)
            mapView.setRegion(region, animated: true)
        }
    }
}

