0
Я не получаю ответа и ошибок от этого PHP-кода. Кто-нибудь знает, что я делаю неправильно, пожалуйста? Это кажется простым:не получил ответа от php google geocode rest api request
PHP:
$details_url = "https://maps.googleapis.com/maps/api/geocode/json?address=436+Grant+Street+Pittsburgh&sensor=false&key=mykey";
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$response = curl_exec($ch);
print_r($response);
Спасибо, @Marc B! – LauraNMS