How to get Latitude/Longitude from an address (or Geocoding ) using PHP

While Google’s documents for maps API does good job in showing how to get lat/long from an address in JavaScript they do not really show any example of doing the same with PHP.   So to make you life simple here is a small script in PHP that does that.     $geocode=file_get_contents(‘,+Jangli+Maharaj+Road,+Deccan+Gymkhana,+Pune,+Maharashtra,+India&sensor=false’); $output= json_decode($geocode); […]