First you need to add NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription (if you want to use in the background) in the info.plist file. See the following image:

Next, in your fast file, you need to call either locationManager.requestWhenInUseAuthorization() or locationManager.requestAlwaysAuthorization() in your viewDidLoad() method.
Finally, you can do mapView.camera = GMSCameraPosition(target: locations.last!.coordinate, zoom: 15, bearing: 0, viewingAngle: 0) in your delegation method locationManager.
Code example:
class ViewController: UIViewController, CLLocationManagerDelegate { var locationManager = CLLocationManager(); override func viewDidLoad() { super.viewDidLoad()
You can post this for more details on changing the LocationManager in iOS 8.
source share