Skip to content

Commit 931a781

Browse files
ratibusatymic
authored andcommitted
Fix code example (#1016)
Key and app-id were inverted in the code example vs constructor signature in the implementation. A quote was missing in another line.
1 parent 49e2734 commit 931a781

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Provider/AlgoliaPlaces/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ $httpClient = new \Http\Adapter\Guzzle6\Client();
3939
// Unauthenticated
4040
$provider = new \Geocoder\Provider\AlgoliaPlaces\AlgoliaPlaces($httpClient);
4141
// Authenticated
42-
$provider = new \Geocoder\Provider\AlgoliaPlaces\AlgoliaPlaces($httpClient, '<your-app-id>', '<your-key>');
42+
$provider = new \Geocoder\Provider\AlgoliaPlaces\AlgoliaPlaces($httpClient, '<your-key>', '<your-app-id>');
4343

4444
$geocoder = new \Geocoder\StatefulGeocoder($provider, 'en');
4545

46-
$result = $geocoder->geocodeQuery(GeocodeQuery::create('Paris')->withLocale('fr-FR));
46+
$result = $geocoder->geocodeQuery(GeocodeQuery::create('Paris')->withLocale('fr-FR'));
4747
```
4848

4949
## Contribute
5050

5151
Contributions are very welcome! Send a pull request to the [main repository](https://github.com/geocoder-php/Geocoder) or
52-
report any issues you find on the [issue tracker](https://github.com/geocoder-php/Geocoder/issues).
52+
report any issues you find on the [issue tracker](https://github.com/geocoder-php/Geocoder/issues).

0 commit comments

Comments
 (0)