diff --git a/src/Helper/NominatimGeoCodeService.php b/src/Helper/NominatimGeoCodeService.php index 3d514b076..432167a46 100644 --- a/src/Helper/NominatimGeoCodeService.php +++ b/src/Helper/NominatimGeoCodeService.php @@ -19,9 +19,11 @@ class NominatimGeoCodeService implements GeoCodeService { * @param $addressString * * @return ?Location + * @throws \Exception */ public function getAddressData( $addressString ): ?Location { - $defaultUserAgent = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0'; + + $defaultUserAgent = 'CommonsBooking v.' . COMMONSBOOKING_VERSION . " Contact: mail@commonsbooking.org"; $client = new Client( null, @@ -49,4 +51,4 @@ public function getAddressData( $addressString ): ?Location { return null; } -} \ No newline at end of file +}