import UIKit
import CoreLocation
class ViewController: UIViewController, CLLocationManagerDelegate {
@IBOutlet var latLabel: UILabel!
@IBOutlet var longLab
Alternatively, you can pass lat long to this google api and get all fields related to address depending on the "types" in the json
That's a network error, CLGeocoder needs a working network connection in order to reverse geocode a location, according to the docs.
Also, CLGeocoder will throttle geocoding requests, returning that same error if you exceed the request rate, this is also documented in the class reference.