-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"The GeoPlugin provider does not support street addresses, only IP addresses" #192
Comments
@Mitcal thanks for writing in. This seems to indicate that none of the providers are able to resolve certain postal codes. I would recommend clearing your cache and trying again. If it still persists, I would go to the website of each provider you are using and see if they can resolve the problematic postal codes natively. If that still persists, please provide a list of postal codes that do not work, as well as your geocoded config file, so that I can replicate and see if its an issue in code. |
Hi @mikebronner, Thanks for your reply. Here is an example of a postcode that for whatever reason Google Maps can't geocode (even though it shows up on their own maps). https://maps.googleapis.com/maps/api/geocode/json?address=BR3%201SY&key=GOOGLE_API_KEY I think I'm using most of the defaults in my config file but here it is:
It seems like what's happening is the lookup fails, so then it retries the lookup thinking I'm giving an IP address? |
General Information
GeocoderLaravel Version: 4.4
Laravel Version: 8.79
PHP Version: 8.0
Operating System and Version: linux
Issue Description
[describe what is going wrong in plain english]
Some UK postcodes seem to fail geocoding and I receive the above error.
Steps to Replicate
[please provide a list of specific steps that will allow me to replicate this issue]
$geo = app('geocoder')->geocode('SW1 1AA')->get(); // this postcode is fine, but a very specific few are not.
Stack Trace
The text was updated successfully, but these errors were encountered: