Regression fix from b6a8b602b8 for location population (#13819)

This commit is contained in:
Jellyfrog
2022-03-03 00:37:52 +01:00
committed by GitHub
parent 86a504e675
commit 5ffbceb7e8
2 changed files with 3 additions and 3 deletions

View File

@@ -50,9 +50,9 @@ trait GeocodingHelper
}
try {
$options = $this->buildGeocodingOptions($address);
$client = $this->getClient()->withOptions($this->buildGeocodingOptions($address));
$response = $this->getClient()->get($this->geocoding_uri, $options);
$response = $client->get($this->geocoding_uri);
$response_data = $response->json();
if ($this->checkResponse($response, $response_data)) {
return $this->parseLatLng($response_data);

View File

@@ -31,7 +31,7 @@ class NominatimApi extends BaseApi implements Geocoder
{
use GeocodingHelper;
protected $base_uri = 'http://nominatim.openstreetmap.org';
protected $base_uri = 'https://nominatim.openstreetmap.org';
protected $geocoding_uri = '/search';
/**