Skip to content

Commit 5767ac8

Browse files
committed
Merge pull request #159 from heiglandreas/hotfix/nominatim
Adds a user-agent to the nominatim-call
2 parents 33f3120 + 772d80f commit 5767ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/module/Phpug/src/Phpug/Service/GeocoderFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function createService(ServiceLocatorInterface $createService)
5353
{
5454
$locale = 'en';
5555
$geocoder = new \Geocoder\Geocoder();
56-
$adapter = new \Geocoder\HttpAdapter\CurlHttpAdapter();
56+
$adapter = new \Geocoder\HttpAdapter\CurlHttpAdapter(null, null, 'PHP.ug country-locator - [email protected]');
5757

5858
$geocoder->registerProviders(array(
5959
new \Geocoder\Provider\NominatimProvider(

0 commit comments

Comments
 (0)