title: How to separate country from address in google place picker api in swift
body: <p>I am working on application in which I am using google place picker API for getting address.</p>
  
  <pre><code>placePicker.pickPlaceWithCallback { (place: GMSPlace?, error: NSError?) -&gt; Void in
  
              if let error = error {
                  print("Error occurred: \(error.localizedDescription)")
                  return
              }
              // 3
              if let place = place {
                  let coordinates = CLLocationCoordinate2DMake(place.coordinate.latitude, place.coordinate.longitude)
                  let marker = GMSMarker(position: coordinates)
                  marker.title = place.name
                  marker.map = self.googleMapView
                  self.googleMapView.animateToLocation(coordinates)
                  self.delegate?.userAddress(place.formattedAddress! )
                  self.navigationController!.popViewControllerAnimated(true)
  
              } else {
                    Print(@"Place name %@", place.name);
                    Print(@"Place address %@", place.formattedAddress);
                    Print(@"Place placeID %@", place.placeID);
                    Print(@"Place attributions %@", place.attributions);
              }
          }
  </code></pre>
  
  <p>In this I am getting full address including country,state and city.</p>
  
  <p>I want to separate country state and city from address
  I didn't find any solution.</p>
  
  <p>Any help would be appreciated.</p>