Closed njoyjoy closed 4 years ago
Thanks, I will try to replicate this.
@njoyjoy I am unable to replicate this, and the results actually return correct data. Please submit a PR with a failing test, if you are able to replicate it. In the meantime I will close this, as it appears to be an issue with your app. Feel free to reopen if you can provide more details.
General Information
GeocoderLaravel Version: 4.3.2 Laravel Version: 7.16.1 PHP Version: 7.4 Operating System and Version: MacOS, Laravel Homestead Vagrant Provider: Google Maps API
Issue Description
Using app('geocoder')->geocode('Los Angeles, CA')->get(), returns an empty result set from Google Maps API:
Using app('geocoder')->geocode('Los Angeles, CA')->all(), returns correctly with the required information in the result set:
Steps to Replicate
Try get() vs. all() using the documented example.
This worked properly in our code with get() for quite some time, perhaps until we upgraded Laravel. We have confirmed it is hitting the Google Maps API and not throwing and error there.