<?php echo getAddress("28.6100", "77.2300"); function getaddress($lat,$lng) { $url = 'http://maps.googleapis.com/maps/api/geocode/json?latlng='.trim($lat).','.trim($lng).'&sensor=false'; $json = @file_get_contents($url); $data=json_decode($json); $status = $data->status; if($status=="OK") return $data->results[0]->formatted_address; else return false; } ?>
Html, JAVA,DOTNET,Javascript, PHP, and JQuery Scripts and its issues with solutions
Wednesday, 6 August 2014
Get address by using lattitude and longitude Google APi
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment