             locationManager.requestWhenInUseAuthorization()
         }
     }
-    
+
     override func viewDidAppear(animated: Bool) {
         super.viewDidAppear(animated)
         checkLocationAuthorizationStatus()
     }
 
-    
-    
-    
+
+
+
 }
 

                        }
                    }
                } catch {
                    
                }
            }
        }
        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

class ViewController: UIViewController, CLLocationManagerDelegate {
    var locationManager: CLLocationManager!
    let regionRadius: CLLocationDistance = 1000

    @IBOutlet weak var mapView: MKMapView!
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.

        let initialLocation = CLLocation(latitude: 30.302135, longitude: -97.740153)
        centerMapOnLocation(initialLocation)
        locationManager = CLLocationManager()
