Request:
Array
(
[origins] => 14-750 René-Lévesque Blvd, Drummondville, J2C 7N7, Canada
[destinations] => Québec, Canada
[mode] => driving
[avoid] => none
[units] => metric
[sensor] => 0
[region] => ca
)
Response:
Array
(
[headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[content-type] => application/json; charset=UTF-8
[date] => Sun, 28 Apr 2024 20:58:03 GMT
[pragma] => no-cache
[expires] => Fri, 01 Jan 1990 00:00:00 GMT
[cache-control] => no-cache, must-revalidate
[vary] => Accept-Language
[server] => mafe
[content-length] => 313
[x-xss-protection] => 0
[x-frame-options] => SAMEORIGIN
[server-timing] => gfet4t7; dur=51
[alt-svc] => h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
)
)
[body] => {
"destination_addresses" : [],
"error_message" : "You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started",
"origin_addresses" : [],
"rows" : [],
"status" : "REQUEST_DENIED"
}
[response] => Array
(
[code] => 200
[message] => OK
)
[cookies] => Array
(
)
[filename] =>
[http_response] => WP_HTTP_Requests_Response Object
(
[response:protected] => WpOrg\Requests\Response Object
(
[body] => {
"destination_addresses" : [],
"error_message" : "You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started",
"origin_addresses" : [],
"rows" : [],
"status" : "REQUEST_DENIED"
}
[raw] => HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Date: Sun, 28 Apr 2024 20:58:03 GMT
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Cache-Control: no-cache, must-revalidate
Vary: Accept-Language
Server: mafe
Content-Length: 313
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
Server-Timing: gfet4t7; dur=51
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Connection: close
{
"destination_addresses" : [],
"error_message" : "You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started",
"origin_addresses" : [],
"rows" : [],
"status" : "REQUEST_DENIED"
}
[headers] => WpOrg\Requests\Response\Headers Object
(
[data:protected] => Array
(
[content-type] => Array
(
[0] => application/json; charset=UTF-8
)
[date] => Array
(
[0] => Sun, 28 Apr 2024 20:58:03 GMT
)
[pragma] => Array
(
[0] => no-cache
)
[expires] => Array
(
[0] => Fri, 01 Jan 1990 00:00:00 GMT
)
[cache-control] => Array
(
[0] => no-cache, must-revalidate
)
[vary] => Array
(
[0] => Accept-Language
)
[server] => Array
(
[0] => mafe
)
[content-length] => Array
(
[0] => 313
)
[x-xss-protection] => Array
(
[0] => 0
)
[x-frame-options] => Array
(
[0] => SAMEORIGIN
)
[server-timing] => Array
(
[0] => gfet4t7; dur=51
)
[alt-svc] => Array
(
[0] => h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
)
)
)
[status_code] => 200
[protocol_version] => 1.1
[success] => 1
[redirects] => 0
[url] => https://maps.googleapis.com/maps/api/distancematrix/json?key=AIzaSyAKQrOVwHbTy3fXIZD-YtE7JHxfJSOfr64&origins=14-750+Ren%C3%A9-L%C3%A9vesque+Blvd%2C+Drummondville%2C+J2C+7N7%2C+Canada&destinations=Qu%C3%A9bec%2C+Canada&mode=driving&avoid=none&units=metric&sensor=0®ion=ca
[history] => Array
(
)
[cookies] => WpOrg\Requests\Cookie\Jar Object
(
[cookies:protected] => Array
(
)
)
)
[filename:protected] =>
[data] =>
[headers] =>
[status] =>
)
)