Enter your keyword

Blog

CURL Request

$url='https://maps.googleapis.com/maps/api/place/textsearch/json?query='.$query1.'&sensor=true&key='.$key;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_PROXYPORT, 3128);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$response = curl_exec($ch);
curl_close($ch);
$response_a = json_decode($response);
echo '<pre/>'; print_r($response_a); die;

No Comments

Add your review

Your email address will not be published.

* Feilds are Required.