How to get Longitude and Latitude from an Address with PHP. So Easy

results[0]->geometry->location->lat;
$long = $output->results[0]->geometry->location->lng;

echo $address.‘
Lat: ‘.$lat.‘
Long: ‘.$long;

?>

Leave a Reply