$content = file_get_contents("https://maps.googleapis.com/maps/api/geocode/json?address=Москва,%20ул.%20Академика%20Бочвара,%202");
$json = json_decode($content, true);
echo $json["results"]["geometry"]["location"]["lat"];
echo $json[0]["results"]["geometry"]["location"]["lat"];