     var startLocation: CLLocation?
     var lastLocation: CLLocation?
     var traveledDistance = 0.0
-    var currentSpeed = 0.0
+    var averageSpeed = 0.0
     
   
     

    
    @IBOutlet weak var timerLabel: UILabel!
    
    var Seconds = 0.0
    var timer = NSTimer()
    var startIsOn = false
    

        

        let currentLocation = locations.last
        
        let center = CLLocationCoordinate2D(latitude: (currentLocation?.coordinate.latitude)!, longitude: (currentLocation?.coordinate.longitude)!)
        
        // map zoom in
        let region = MKCoordinateRegion(center: center, span: MKCoordinateSpanMake(0.005, 0.005))
        mapView.setRegion(region, animated: true)
        
        
