alexpechkarev / google-maps

Collection of Google Maps API Web Services for Laravel
https://alexpechkarev.github.io/google-maps/
MIT License
523 stars 115 forks source link

How to catch errors related to API key? #79

Closed jpmurray closed 4 years ago

jpmurray commented 4 years ago

I'm having a trouble with an API key, but I can't seem to be able to catch whatever would be the response from Google. Any pointers on this?

alexpechkarev commented 4 years ago

Hi @jpmurray ,

Please can you show an example of the code to replicate the error?

jpmurray commented 4 years ago

No really, but I know I got a case where playing with the package that my API key was not the right one (ie: blocked to a specific domain which wasn't the actual one I was using).

The package returned what seemed like a general error / exception, I couldn't tell what was really happening.

alexpechkarev commented 4 years ago

Hi @jpmurray ,

Please could you submit a pull request suggesting the way to handle this type of issue? Regards