title: Grabbing place nearest to user's current location and saving it to Google Places API
body: <p>I want to get the nearest location to the current user using the Google Places API and save it, eventually creating an array of saved places. Since the google docs online are not very helpful I'm having some trouble figuring out how to do so myself. I've already have a CLLocationManager working fine but I'm at a loss when it comes to syncing everything. </p>
  
  <p>Thank you! </p>
  
  <p>When the user presses a button I want it to call a method and save the nearest current place... this is an example method of what I have so far.</p>
  
  <pre><code>func saveInfoTestMethod() {
  
      let placesClient = GMSPlacesClient?()
  
      placesClient?.currentPlaceWithCallback({ (placeLikelihoods: GMSPlaceLikelihoodList?, error) -&gt; Void in
          if error != nil {
              print("Current Place error: \(error!.localizedDescription)")
              return
          }
  
          for likelihood in placeLikelihoods!.likelihoods {
              if let likelihood = likelihood as? GMSPlaceLikelihood {
                  let place = likelihood.place
                  print("Current Place name \(place.name) at likelihood \(likelihood.likelihood)")
                  print("Current Place address \(place.formattedAddress)")
                  print("Current Place attributions \(place.attributions)")
                  print("Current PlaceID \(place.placeID)")
  
                  //Somehow work below code into here
  
              }
          }
      })
  
  
  
      let userAddedPlace = GMSUserAddedPlace()
  
  
      placesClient?.addPlace(userAddedPlace, callback: { (place, error) -&gt; Void in
  
          print(place!.name)
          print(place!.formattedAddress)
          print(place!.coordinate)
          print(place!.types)
          print(place!.phoneNumber)
  
      })
  
  
  
  }
  </code></pre>