title: Get current location using CLLocationCoordinate2D
body: <p>I am trying to get current location of user using CLLocationCoordinate2D. I want the values in the format like  </p>
  
  <p>CLLocationCoordinate2D start = {-28.078694,153.382844 };</p>
  
  <p>So that I can use them like following:</p>
  
  <pre><code> NSString *urlAddress = [NSString 
         stringWithFormat:@"http://maps.google.com/?saddr=%1.6f,%1.6f&amp;daddr=%1.6f,%1.6f",  
         start.latitude, start.longitude, 
         destination.latitude, destination.longitude];  
  </code></pre>
  
  <p>I used </p>
  
  <pre><code>CLLocation *location = [[CLLocation alloc]init ];
  CLLocationDegrees currentLatitude = location.coordinate.latitude;
  CLLocationDegrees currentLongitude = location.coordinate.longitude;
  </code></pre>
  
  <p>to get current lat &amp; long.</p>
  
  <p>But I am getting 0.000 for both when I try to test. I am testing on iPhone 4s.</p>
  
  <p>If there is any sample code, it will be great.</p>