title: cURL error 7: Failed to connect to maps.googleapis.com port 443
body: <p>I got following Error when get Distance between two places in Laravel. i use guzzlehttp/guzzle package to get Google Map api response. i previously declare use GuzzleHttp\Client; How to solve this Issue. </p>
  
  <blockquote>
    <p>Error : cURL error 7: Failed to connect to maps.googleapis.com port
    443: Network is unreachable (see
    <a href="http://curl.haxx.se/libcurl/c/libcurl-errors.html" rel="nofollow noreferrer">http://curl.haxx.se/libcurl/c/libcurl-errors.html</a>)</p>
  </blockquote>
  
  <pre><code>$pickupaddress = urlencode($frmplace);
  $deliveryaddress = urlencode($destplace);
  $client = new GuzzleHttp\Client();
  
  $disrequest = $client-&gt;get('https://maps.googleapis.com/maps/api/distancematrix/json?origins='.$pickupaddress.'&amp;destinations='.$deliveryaddress.'&amp;mode=driving&amp;key=ASESdsfsdfsdfdsfdf')-&gt;getBody();
  
  $disjsondecode = json_decode($disrequest);
  $tripdistance = $disjsondecode-&gt;rows[0]-&gt;elements[0]-&gt;distance-&gt;text;
  </code></pre>