title: getting Latitude And Longitude From Pin Code Using PHP
body: <p>In my site i want to get the latitude and longitude of given pin code or postal code.
  If i give <code>680721</code> as pin code or postal code then i want to get its corresponding latitude and longitude using php code.
  How can i do this?
  If this is possible in PHP?
  I have php code to get latitude and longitude of given name of place.</p>
  
  <pre><code>$Url='http://maps.googleapis.com/maps/api/geocode/json?address='.$exp_pjctloc[$i].'&amp;sensor=false';
  if (!function_exists('curl_init')){
      die('Sorry cURL is not installed!');
  }
  
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $Url);
  curl_setopt($ch, CURLOPT_REFERER, "http://www.example.org/yay.htm");
  curl_setopt($ch, CURLOPT_USERAGENT, "MozillaXYZ/1.0");
  curl_setopt($ch, CURLOPT_HEADER, 0);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_TIMEOUT, 10);
  $output = curl_exec($ch);
  curl_close($ch);
  $search_data = json_decode($output);
  $lat =  $search_data-&gt;results[0]-&gt;geometry-&gt;location-&gt;lat;
  $lng =  $search_data-&gt;results[0]-&gt;geometry-&gt;location-&gt;lng;
  </code></pre>
  
  <p>But how can i get it by using pin code or postal code?</p>