php-google-maps-distance-matrix icon indicating copy to clipboard operation
php-google-maps-distance-matrix copied to clipboard

Access the error message

Open howdu opened this issue 4 years ago • 1 comments

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" ]

howdu avatar Nov 05 '21 13:11 howdu

Thanks, i had an RESPONSE_REQUEST_DENIED status and ended being "API keys with referer restrictions cannot be used with this API."

donal56 avatar Nov 19 '21 14:11 donal56