over 9 years ago
By using google api we can find the location
public function getAddressByLatLong($loclatitude='',loclongitude='') { $loclatitude=trim($loclatitude); $loclongitude=trim($loclongitude); $apiurl = 'http://maps.googleapis.com/maps/api/geocode/json?latlng='.$loclatitude.','.$loclongitude.'&sensor=false'; $locationrecord = @file_get_contents($apiurl); $locationdata=json_decode($locationrecord); $locationstatus = $locationdata->status; if($locationstatus=="OK") return $locationdata->results[0]->formatted_address; else return false; } echo $address= $this->getaddress($lat,$lng);
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)