title: Initialize a CLLocation object in swift with latitude and longitude
body: <p>In objective C (I have no experience with it) you can initialize a CLLocation object with latitude and longitude likes this:</p>
  
  <pre><code>CLLocation *myLocation = [[CLLocation alloc]  initWithLatitude:your_latitiude_value longitude:your_longitude_value];
  </code></pre>
  
  <p>But how do I do it in Swift?</p>
  
  <p>I tried this, </p>
  
  <pre><code>let loc_coords = CLLocationCoordinate2D(latitude: your_latitiude_value, longitude: your_longitude_value)
  
  let loc = CLLocation().coordinate(loc_coords)
  </code></pre>
  
  <p>But I get this error:</p>
  
  <p>Cannot invoke "coordinate" with an argument list of type '(CLLocationCoordiate2D)'</p>
  
  <p>I need it to be a CLLocation object as I want to use the distanceFromLocation method within the locationManager.</p>
  
  <p>Hope you can help, thanks!</p>