mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Regression fix from b6a8b602b8
for location population (#13819)
This commit is contained in:
@@ -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);
|
||||
|
@@ -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';
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user