 import UIKit
 import MapKit
 
-class ReportViewController: UIViewController {
+class ReportViewController: UIViewController, CLLocationManagerDelegate {
     
     @IBOutlet weak private var tempField: UITextField!
     @IBOutlet weak private var humidField: UITextField!
     @IBOutlet weak private var rainField: UITextField!
     @IBOutlet weak private var locationMap: MKMapView!
+    let locationManager = CLLocationManager();
     
-
     override func viewDidLoad() {
         super.viewDidLoad()
         tempField.attributedPlaceholder = NSAttributedString(string:"Temperature (ºC)", attributes:[NSForegroundColorAttributeName: UIColor.whiteColor()])

        self.view.endEditing(true);
    }
    
    }
}

        tempField.inputAccessoryView = toolbar
        humidField.inputAccessoryView = toolbar
        rainField.inputAccessoryView = toolbar
        
        if (CLLocationManager.locationServicesEnabled()) {
            locationManager.delegate = self
            locationManager.desiredAccuracy = kCLLocationAccuracyBest
            locationManager.requestWhenInUseAuthorization()
            locationManager.startUpdatingLocation()
        }
    }

    override func didReceiveMemoryWarning() {
