CLLocation speed return -1.0
问题 I have problem. My GPS (on iPad mini 2 in Wifi and on iPhone 6 in 3G/4G) the speed return -1.0. Have an idea? This what i receive in console log: Long: 12.5245, Lat: 41.9456, Speed:-1.0, kph: -3.6 Here the code in didUpdateLocations() let userLocation: CLLocation = locations[0] var speed: CLLocationSpeed = CLLocationSpeed() speed = (locationManager.location?.speed)! SpeedLabel.text = String(format: "%.0f km/h", speed * 3.6) let long = String(Float(userLocation.coordinate.longitude)) let lat =