title: Retrieving Lat and Long in Http Adapter in worklight
body: <p>Im trying to retrieve the lat and long using http adapter. while i try to invoke the procedure i would be able to retrieve the result. but i want to retrieve only lat and long not other additional info. I have attached my code.</p>
  
  <pre><code>function getGmapLatLng(pAddress) {
  var input = {
  method : 'get',
  returnedContentType : 'json',
  path : 'maps/api/geocode/json',
  parameters : {
  'address' : pAddress,
  'sensor' : 'false' // hard-coded
  }
  }; 
  return WL.Server.invokeHttp(input);
  var type = typeof input; 
  if ("object" == type) {
  if (true == response) {
  
  // Drill down into the response object.
  var results = response;
  var result = results[0];
  var geometry = result;
  var location = geometry;
  } 
  else {
  
  return null;
  }
  } 
  else {
  return null;
  }
  
  }
  </code></pre>
  
  <p>Can anyone correct me where i did wrong</p>