Skip to content

Commit 772d80f

Browse files
committed
Adds a user-agent to the nominatim-call
1 parent 33f3120 commit 772d80f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module/Phpug/src/Phpug/Service/GeocoderFactory.php

Lines changed: 1 addition & 1 deletion
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)