title: Converting a PFGeoPoint Lat and Long from Parse into a CLLocation Lat and Long in swift
body: <p>I am trying to query an array of coordinates (lat and long) from my parse back end. and then use them as annotations on a map. Although once I have queried from parse I am not sure how to convert the coordinates into a CLLocation.</p>
  
  <p>The code used for query:</p>
  
  <pre><code>var usersLocations = [Double]()
  
   override func viewDidLoad() {
          super.viewDidLoad()
  
          PFGeoPoint.geoPointForCurrentLocationInBackground { (geopoint: PFGeoPoint!, error: NSError!) -&gt; Void in
  
              var query = PFUser.query()
              query.whereKey("location", nearGeoPoint: geopoint, withinMiles: 1)
              query.limit = 10
              var users = query.findObjects()
  
              for user in users {
  
                  self.usersLocations.append(user["location"] as Double)
              }
  
  
              self.currentUsersPoint()
  
          }
      }
  </code></pre>
  
  <p>And then the code used to try place the array of coordinates into CLLocation.</p>
  
  <pre><code>var latitude:CLLocationDegrees = usersLocation.coordinate.latitude
  
  var longitude:CLLocationDegrees = usersLocation.coordinate.longitude
  </code></pre>
  
  <p>I'm aware this is a bit messy and I'm really just not sure as I am still new to swift and programming so struggling to work this all out. If anybody can help in anyway it would be appreciated. </p>