Skip to content

Commit 4c0e8ac

Browse files
committed
update doc
1 parent b258c8f commit 4c0e8ac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ Configuration
6262

6363
The service provider creates the following services:
6464

65-
* `geocoder`: the Geocoder instance.
66-
* `geocoder.provider`: the provider used by Geocoder.
67-
* `geocoder.adapter`: the HTTP adapter used to get data from remotes APIs.
65+
* `geocoder`: the Geocoder instance.
66+
* `geocoder.provider`: the provider used by Geocoder.
67+
* `geocoder.adapter`: the HTTP adapter used to get data from remotes APIs.
6868

6969
By default, the `geocoder.provider` service uses FreeGeoIP and the `geocoder.adapter` service uses the cURL adapter.
7070
Override these services to use the adapter/provider you want.
@@ -83,6 +83,7 @@ try {
8383
$geocode = Geocoder::geocode('10 rue Gambetta, Paris, France');
8484
// ...
8585
} catch (\Exception $e) {
86+
// Here we will get "The FreeGeoIpProvider does not support Street addresses." ;)
8687
echo $e->getMessage();
8788
}
8889
```

0 commit comments

Comments
 (0)