File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ $reader = new \GeoIp2\Database\Reader('/path/to/geolite2.mmdb');
3030$adapter = new \Geocoder\Provider\GeoIP2\GeoIP2Adapter($reader);
3131$geocoder = new \Geocoder\Provider\GeoIP2\GeoIP2($adapter);
3232
33- $address = $geocoder->geocode( '74.200.247.59')->first();
33+ $address = $geocoder->geocodeQuery(\Geocoder\Query\GeocodeQuery::create( '74.200.247.59') )->first();
3434```
3535
3636### Using the Precision Web Service (API)
@@ -43,7 +43,7 @@ $reader = new \GeoIp2\WebService\Client(<account_id>, '<licence_key>');
4343$adapter = new \Geocoder\Provider\GeoIP2\GeoIP2Adapter($reader);
4444$geocoder = new \Geocoder\Provider\GeoIP2\GeoIP2($adapter);
4545
46- $address = $geocoder->geocode( '74.200.247.59')->first();
46+ $address = $geocoder->geocodeQuery(\Geocoder\Query\GeocodeQuery::create( '74.200.247.59') )->first();
4747```
4848
4949### Contribute
You can’t perform that action at this time.
0 commit comments