Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- url= "https://maps.googleapis.com/maps/api/distancematrix/json?
- origins=6601se,holland&destinations=5344at,holland";
- $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, true);
- print_r( $response_a );
Add Comment
Please, Sign In to add comment