php-google-maps-distance-matrix
php-google-maps-distance-matrix copied to clipboard
Access the error message
I had to edit the core code to find the error message. It was returning the general error: Request provided was invalid.
Json response was obvious how to fix once I could see the error. [ "destination_addresses" => [] "error_message" => "departure_time is in the past. Traffic information is only available for future and current times." "origin_addresses" => [] "rows" => [] "status" => "INVALID_REQUEST" ]
Thanks, i had an RESPONSE_REQUEST_DENIED status and ended being "API keys with referer restrictions cannot be used with this API."