title: Latitude & Longitude for Autocomplete place search google API in ios
body: <p>I implemented the Autocomplete Place Search API from Google. It works fine.</p>
  
  <p>But in the response, the google is not returning the "Latitude &amp; Longitude" of the place.</p>
  
  <p><strong>my code is as follow</strong></p>
  
  <pre><code>NSString *strUrl =
  [[[NSString stringWithFormat:@"%@%@%@?sensor=false&amp;key=%@&amp;input=%@",
     PLACES_API_BASE,
     TYPE_AUTOCOMPLETE,
     OUT_JSON,API_KEY,
     txt_search.text]
    stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]
   stringByReplacingOccurrencesOfString:@" " withString:@"%20"];
  
  
  NSLog(@"--- address ---  %@",strUrl);
  
  NSData *responseData = [NSData dataWithContentsOfURL:[NSURL URLWithString:strUrl] options:NSDataReadingUncached error:nil];
  
  
  NSDictionary  *dictResponse = [NSJSONSerialization JSONObjectWithData:responseData options:NSJSONReadingMutableContainers error:Nil];
  NSLog(@"%@",dictResponse);
  </code></pre>
  
  <p><strong>Response</strong></p>
  
  <pre><code>{
    "status": "OK",
    "predictions": [ {
      "description": "Paris, France",
      "id" : "691b237b0322f28988f3ce03e321ff72a12167fd",
      "reference": "CiQYAAAA0Q_JA...kT3ufVLDDvTQsOwZ_tc",
      "terms": [ {
        "value": "Paris",
        "offset": 0
      }, {
        "value": "France",
        "offset": 7
      } ],
      "types": [ "geocode" ],
      "matched_substrings": [ {
        "offset": 0,
        "length": 5
      } ]
    }
  </code></pre>