Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I'm using this module to geocode addresses and would like to catch exceptions when Google API fails (e.g. returns some error or status that is not OK). I investigated a bit the source code and found that module also throws exception when API returns zero results (i.e. returns status ZERO_RESULTS). Wouldn't it be better to return empty result as it is expected behaviour for incorrect input data?
Thanks in advance
Comments
Comment #2
AdamPS CreditAttribution: AdamPS commentedI agree. I have just raised a more detailed and comprehensive issue so I hope you don't mind if I close yours as a duplicate.
Comment #3
AdamPS CreditAttribution: AdamPS commentedI have a patch in the related issue. If you get a chance to test and review that would be appreciated.