Skip to content

"The GeoPlugin provider does not support street addresses, only IP addresses" #192

@Mitcal

Description

@Mitcal

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

[2022-11-29 10:13:30] local.ALERT: Provider "{providerName}" could not geocode address: "{address}". {"exception":"[object] (Geocoder\\Exception\\UnsupportedOperation(code: 0): 
The GeoPlugin provider does not support street addresses, only IP addresses. at /var/www/html/vendor/geocoder-php/geo-plugin-provider/GeoPlugin.php:42)
[stacktrace]
#0 /var/www/html/vendor/geocoder-php/chain-provider/Chain.php(71): Geocoder\\Provider\\GeoPlugin\\GeoPlugin->geocodeQuery()
#1 /var/www/html/vendor/willdurand/geocoder/ProviderAggregator.php(67): Geocoder\\Provider\\Chain\\Chain->geocodeQuery()
#2 /var/www/html/vendor/willdurand/geocoder/ProviderAggregator.php(96): Geocoder\\ProviderAggregator->geocodeQuery()
#3 /var/www/html/vendor/toin0u/geocoder-laravel/src/ProviderAndDumperAggregator.php(209): Geocoder\\ProviderAggregator->geocode()
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(391): Geocoder\\Laravel\\ProviderAndDumperAggregator->Geocoder\\Laravel\\{closure}()
#5 /var/www/html/vendor/toin0u/geocoder-laravel/src/ProviderAndDumperAggregator.php(211): Illuminate\\Cache\\Repository->remember()
#6 /var/www/html/vendor/toin0u/geocoder-laravel/src/ProviderAndDumperAggregator.php(101): Geocoder\\Laravel\\ProviderAndDumperAggregator->cacheRequest()
#7 /var/www/html/app/Http/Controllers/JobController.php(406): Geocoder\\Laravel\\ProviderAndDumperAggregator->geocode()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions