Skip to content

Commit 89c19d0

Browse files
authored
[GeoIP2] Update README.md (#1096)
1 parent a39cf4d commit 89c19d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Provider/GeoIP2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)